Class BasicConnectionCreator
java.lang.Object
org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator
- Direct Known Subclasses:
DriverConnectionCreator
,DriverManagerConnectionCreator
Template (as in template pattern) support for
ConnectionCreator
implementors.-
Constructor Summary
ConstructorsConstructorDescriptionBasicConnectionCreator
(ServiceRegistryImplementor serviceRegistry, String url, Properties connectionProps, boolean autocommit, Integer isolation, String initSql) -
Method Summary
Modifier and TypeMethodDescriptionprotected JDBCException
convertSqlException
(String message, SQLException e) Exposed for testing purposes only.getUrl()
protected abstract Connection
makeConnection
(String url, Properties connectionProps)
-
Constructor Details
-
BasicConnectionCreator
public BasicConnectionCreator(ServiceRegistryImplementor serviceRegistry, String url, Properties connectionProps, boolean autocommit, Integer isolation, String initSql)
-
-
Method Details
-
getUrl
-
createConnection
-
convertSqlException
-
makeConnection
-
getConnectionProperties
Exposed for testing purposes only.
-