Class BasicConnectionCreator
- java.lang.Object
-
- org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator
-
- Direct Known Subclasses:
DriverConnectionCreator
,DriverManagerConnectionCreator
public abstract class BasicConnectionCreator extends Object
Template (as in template pattern) support forConnectionCreator
implementors.
-
-
Constructor Summary
Constructors Constructor Description BasicConnectionCreator(ServiceRegistryImplementor serviceRegistry, String url, Properties connectionProps, boolean autocommit, Integer isolation, String initSql)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected JDBCException
convertSqlException(String message, SQLException e)
Connection
createConnection()
Properties
getConnectionProperties()
Exposed for testing purposes only.String
getUrl()
protected abstract Connection
makeConnection(String url, Properties connectionProps)
-
-
-
Constructor Detail
-
BasicConnectionCreator
public BasicConnectionCreator(ServiceRegistryImplementor serviceRegistry, String url, Properties connectionProps, boolean autocommit, Integer isolation, String initSql)
-
-
Method Detail
-
getUrl
public String getUrl()
-
createConnection
public Connection createConnection()
-
convertSqlException
protected JDBCException convertSqlException(String message, SQLException e)
-
makeConnection
protected abstract Connection makeConnection(String url, Properties connectionProps)
-
getConnectionProperties
public Properties getConnectionProperties()
Exposed for testing purposes only.
-
-