Class DatabaseConnectionInfoImpl
java.lang.Object
org.hibernate.engine.jdbc.connections.internal.DatabaseConnectionInfoImpl
- All Implemented Interfaces:
DatabaseConnectionInfo
Standard implementation of
DatabaseConnectionInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDatabaseConnectionInfoImpl
(Class<? extends ConnectionProvider> connectionProviderClass, String jdbcUrl, String jdbcDriver, Class<? extends Dialect> dialectClass, DatabaseVersion dialectVersion, boolean hasSchema, boolean hasCatalog, String schema, String catalog, String autoCommitMode, String isolationLevel, Integer poolMinSize, Integer poolMaxSize, Integer fetchSize) DatabaseConnectionInfoImpl
(Map<String, Object> settings, Dialect dialect) DatabaseConnectionInfoImpl
(Dialect dialect) -
Method Summary
Modifier and TypeMethodDescriptionThe transaction auto-commit mode in effect.@Nullable String
The default catalogstatic String
getCatalog
(Connection connection) The database version.static String
getDriverName
(Connection connection) static Integer
getFetchSize
(Connection connection) static Integer
getIsolation
(Connection connection) The transaction isolation-level in effect.The JDBC Driver to be used for connections@Nullable Integer
The default JDBC fetch size.The JDBC URL to be used for connectionsThe maximum connection pool size.The minimum connection pool size.@Nullable String
The default schemastatic String
getSchema
(Connection connection) boolean
static boolean
hasCatalog
(Connection connection) boolean
static boolean
hasSchema
(Connection connection) Collects the information available here as a single String with the intent of using it in logging.
-
Field Details
-
DEFAULT
- See Also:
-
jdbcUrl
-
jdbcDriver
-
dialectVersion
-
schema
-
catalog
-
autoCommitMode
-
isolationLevel
-
poolMinSize
-
poolMaxSize
-
-
Constructor Details
-
DatabaseConnectionInfoImpl
public DatabaseConnectionInfoImpl(Class<? extends ConnectionProvider> connectionProviderClass, String jdbcUrl, String jdbcDriver, Class<? extends Dialect> dialectClass, DatabaseVersion dialectVersion, boolean hasSchema, boolean hasCatalog, String schema, String catalog, String autoCommitMode, String isolationLevel, Integer poolMinSize, Integer poolMaxSize, Integer fetchSize) -
DatabaseConnectionInfoImpl
-
DatabaseConnectionInfoImpl
-
-
Method Details
-
hasSchema
-
hasCatalog
-
getSchema
-
getCatalog
-
getFetchSize
-
getIsolation
-
getDriverName
-
getJdbcUrl
Description copied from interface:DatabaseConnectionInfo
The JDBC URL to be used for connections- Specified by:
getJdbcUrl
in interfaceDatabaseConnectionInfo
-
getJdbcDriver
Description copied from interface:DatabaseConnectionInfo
The JDBC Driver to be used for connections- Specified by:
getJdbcDriver
in interfaceDatabaseConnectionInfo
-
getDialectVersion
Description copied from interface:DatabaseConnectionInfo
The database version.- Specified by:
getDialectVersion
in interfaceDatabaseConnectionInfo
- See Also:
-
getAutoCommitMode
Description copied from interface:DatabaseConnectionInfo
The transaction auto-commit mode in effect.- Specified by:
getAutoCommitMode
in interfaceDatabaseConnectionInfo
-
getIsolationLevel
Description copied from interface:DatabaseConnectionInfo
The transaction isolation-level in effect.- Specified by:
getIsolationLevel
in interfaceDatabaseConnectionInfo
-
getPoolMinSize
Description copied from interface:DatabaseConnectionInfo
The minimum connection pool size.- Specified by:
getPoolMinSize
in interfaceDatabaseConnectionInfo
-
getPoolMaxSize
Description copied from interface:DatabaseConnectionInfo
The maximum connection pool size.- Specified by:
getPoolMaxSize
in interfaceDatabaseConnectionInfo
-
getJdbcFetchSize
Description copied from interface:DatabaseConnectionInfo
The default JDBC fetch size.- Specified by:
getJdbcFetchSize
in interfaceDatabaseConnectionInfo
-
getSchema
Description copied from interface:DatabaseConnectionInfo
The default schema- Specified by:
getSchema
in interfaceDatabaseConnectionInfo
-
getCatalog
Description copied from interface:DatabaseConnectionInfo
The default catalog- Specified by:
getCatalog
in interfaceDatabaseConnectionInfo
-
hasSchema
public boolean hasSchema()- Specified by:
hasSchema
in interfaceDatabaseConnectionInfo
-
hasCatalog
public boolean hasCatalog()- Specified by:
hasCatalog
in interfaceDatabaseConnectionInfo
-
toInfoString
Description copied from interface:DatabaseConnectionInfo
Collects the information available here as a single String with the intent of using it in logging.- Specified by:
toInfoString
in interfaceDatabaseConnectionInfo
-