Class DatabaseConnectionInfoImpl
- java.lang.Object
-
- org.hibernate.engine.jdbc.connections.internal.DatabaseConnectionInfoImpl
-
- All Implemented Interfaces:
DatabaseConnectionInfo
public class DatabaseConnectionInfoImpl extends Object implements DatabaseConnectionInfo
Standard implementation of DatabaseConnectionInfo
-
-
Field Summary
Fields Modifier and Type Field Description protected StringautoCommitModestatic StringDEFAULTprotected DatabaseVersiondialectVersionprotected StringisolationLevelprotected StringjdbcDriverprotected StringjdbcUrlprotected IntegerpoolMaxSizeprotected IntegerpoolMinSize
-
Constructor Summary
Constructors Constructor Description DatabaseConnectionInfoImpl(String jdbcUrl, String jdbcDriver, DatabaseVersion dialectVersion, String autoCommitMode, String isolationLevel, Integer poolMinSize, Integer poolMaxSize)DatabaseConnectionInfoImpl(Map<String,Object> settings, Dialect dialect)DatabaseConnectionInfoImpl(Dialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAutoCommitMode()The transaction auto-commit mode in effect.DatabaseVersiongetDialectVersion()The database version.StringgetIsolationLevel()The transaction isolation-level in effect.StringgetJdbcDriver()The JDBC Driver to be used for connectionsStringgetJdbcUrl()The JDBC URL to be used for connectionsIntegergetPoolMaxSize()The maximum connection pool size.IntegergetPoolMinSize()The minimum connection pool size.StringtoInfoString()Collects the information available here as a single String with the intent of using it in logging.
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
jdbcUrl
protected final String jdbcUrl
-
jdbcDriver
protected final String jdbcDriver
-
dialectVersion
protected final DatabaseVersion dialectVersion
-
autoCommitMode
protected final String autoCommitMode
-
isolationLevel
protected final String isolationLevel
-
poolMinSize
protected final Integer poolMinSize
-
poolMaxSize
protected final Integer poolMaxSize
-
-
Constructor Detail
-
DatabaseConnectionInfoImpl
public DatabaseConnectionInfoImpl(String jdbcUrl, String jdbcDriver, DatabaseVersion dialectVersion, String autoCommitMode, String isolationLevel, Integer poolMinSize, Integer poolMaxSize)
-
DatabaseConnectionInfoImpl
public DatabaseConnectionInfoImpl(Map<String,Object> settings, Dialect dialect)
-
DatabaseConnectionInfoImpl
public DatabaseConnectionInfoImpl(Dialect dialect)
-
-
Method Detail
-
getJdbcUrl
public String getJdbcUrl()
Description copied from interface:DatabaseConnectionInfoThe JDBC URL to be used for connections- Specified by:
getJdbcUrlin interfaceDatabaseConnectionInfo
-
getJdbcDriver
public String getJdbcDriver()
Description copied from interface:DatabaseConnectionInfoThe JDBC Driver to be used for connections- Specified by:
getJdbcDriverin interfaceDatabaseConnectionInfo
-
getDialectVersion
public DatabaseVersion getDialectVersion()
Description copied from interface:DatabaseConnectionInfoThe database version.- Specified by:
getDialectVersionin interfaceDatabaseConnectionInfo- See Also:
Dialect.getVersion()
-
getAutoCommitMode
public String getAutoCommitMode()
Description copied from interface:DatabaseConnectionInfoThe transaction auto-commit mode in effect.- Specified by:
getAutoCommitModein interfaceDatabaseConnectionInfo
-
getIsolationLevel
public String getIsolationLevel()
Description copied from interface:DatabaseConnectionInfoThe transaction isolation-level in effect.- Specified by:
getIsolationLevelin interfaceDatabaseConnectionInfo
-
getPoolMinSize
public Integer getPoolMinSize()
Description copied from interface:DatabaseConnectionInfoThe minimum connection pool size.- Specified by:
getPoolMinSizein interfaceDatabaseConnectionInfo
-
getPoolMaxSize
public Integer getPoolMaxSize()
Description copied from interface:DatabaseConnectionInfoThe maximum connection pool size.- Specified by:
getPoolMaxSizein interfaceDatabaseConnectionInfo
-
toInfoString
public String 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
-
-