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 StringThe default catalogstatic StringgetCatalog(Connection connection) The database version.static StringgetDriverName(Connection connection) static IntegergetFetchSize(Connection connection) static IntegergetIsolation(Connection connection) The transaction isolation-level in effect.The JDBC Driver to be used for connections@Nullable IntegerThe default JDBC fetch size.The JDBC URL to be used for connectionsThe maximum connection pool size.The minimum connection pool size.@Nullable StringThe default schemastatic StringgetSchema(Connection connection) booleanstatic booleanhasCatalog(Connection connection) booleanstatic booleanhasSchema(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:DatabaseConnectionInfoThe JDBC URL to be used for connections- Specified by:
getJdbcUrlin interfaceDatabaseConnectionInfo
-
getJdbcDriver
Description copied from interface:DatabaseConnectionInfoThe JDBC Driver to be used for connections- Specified by:
getJdbcDriverin interfaceDatabaseConnectionInfo
-
getDialectVersion
Description copied from interface:DatabaseConnectionInfoThe database version.- Specified by:
getDialectVersionin interfaceDatabaseConnectionInfo- See Also:
-
getAutoCommitMode
Description copied from interface:DatabaseConnectionInfoThe transaction auto-commit mode in effect.- Specified by:
getAutoCommitModein interfaceDatabaseConnectionInfo
-
getIsolationLevel
Description copied from interface:DatabaseConnectionInfoThe transaction isolation-level in effect.- Specified by:
getIsolationLevelin interfaceDatabaseConnectionInfo
-
getPoolMinSize
Description copied from interface:DatabaseConnectionInfoThe minimum connection pool size.- Specified by:
getPoolMinSizein interfaceDatabaseConnectionInfo
-
getPoolMaxSize
Description copied from interface:DatabaseConnectionInfoThe maximum connection pool size.- Specified by:
getPoolMaxSizein interfaceDatabaseConnectionInfo
-
getJdbcFetchSize
Description copied from interface:DatabaseConnectionInfoThe default JDBC fetch size.- Specified by:
getJdbcFetchSizein interfaceDatabaseConnectionInfo
-
getSchema
Description copied from interface:DatabaseConnectionInfoThe default schema- Specified by:
getSchemain interfaceDatabaseConnectionInfo
-
getCatalog
Description copied from interface:DatabaseConnectionInfoThe default catalog- Specified by:
getCatalogin interfaceDatabaseConnectionInfo
-
hasSchema
public boolean hasSchema()- Specified by:
hasSchemain interfaceDatabaseConnectionInfo
-
hasCatalog
public boolean hasCatalog()- Specified by:
hasCatalogin interfaceDatabaseConnectionInfo
-
toInfoString
Description copied from interface:DatabaseConnectionInfoCollects the information available here as a single String with the intent of using it in logging.- Specified by:
toInfoStringin interfaceDatabaseConnectionInfo
-