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 String
autoCommitMode
static String
DEFAULT
protected DatabaseVersion
dialectVersion
protected String
isolationLevel
protected String
jdbcDriver
protected String
jdbcUrl
protected Integer
poolMaxSize
protected Integer
poolMinSize
-
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 String
getAutoCommitMode()
The transaction auto-commit mode in effect.DatabaseVersion
getDialectVersion()
The database version.String
getIsolationLevel()
The transaction isolation-level in effect.String
getJdbcDriver()
The JDBC Driver to be used for connectionsString
getJdbcUrl()
The JDBC URL to be used for connectionsInteger
getPoolMaxSize()
The maximum connection pool size.Integer
getPoolMinSize()
The minimum connection pool size.String
toInfoString()
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:DatabaseConnectionInfo
The JDBC URL to be used for connections- Specified by:
getJdbcUrl
in interfaceDatabaseConnectionInfo
-
getJdbcDriver
public String getJdbcDriver()
Description copied from interface:DatabaseConnectionInfo
The JDBC Driver to be used for connections- Specified by:
getJdbcDriver
in interfaceDatabaseConnectionInfo
-
getDialectVersion
public DatabaseVersion getDialectVersion()
Description copied from interface:DatabaseConnectionInfo
The database version.- Specified by:
getDialectVersion
in interfaceDatabaseConnectionInfo
- See Also:
Dialect.getVersion()
-
getAutoCommitMode
public String getAutoCommitMode()
Description copied from interface:DatabaseConnectionInfo
The transaction auto-commit mode in effect.- Specified by:
getAutoCommitMode
in interfaceDatabaseConnectionInfo
-
getIsolationLevel
public String getIsolationLevel()
Description copied from interface:DatabaseConnectionInfo
The transaction isolation-level in effect.- Specified by:
getIsolationLevel
in interfaceDatabaseConnectionInfo
-
getPoolMinSize
public Integer getPoolMinSize()
Description copied from interface:DatabaseConnectionInfo
The minimum connection pool size.- Specified by:
getPoolMinSize
in interfaceDatabaseConnectionInfo
-
getPoolMaxSize
public Integer getPoolMaxSize()
Description copied from interface:DatabaseConnectionInfo
The maximum connection pool size.- Specified by:
getPoolMaxSize
in interfaceDatabaseConnectionInfo
-
toInfoString
public String 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
-
-