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 forConnectionCreatorimplementors.
-
-
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 JDBCExceptionconvertSqlException(String message, SQLException e)ConnectioncreateConnection()PropertiesgetConnectionProperties()Exposed for testing purposes only.StringgetUrl()protected abstract ConnectionmakeConnection(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.
-
-