public abstract class ConnectionProvider extends Object
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
protected Database |
database |
protected String |
databaseMajorMinorVersion |
protected Integer |
databaseMajorVersion |
protected Integer |
databaseMinorVersion |
protected DatabasePlatform |
databasePlatform |
protected String |
databaseProductName |
protected String |
databaseProductVersion |
protected String |
driverMajorMinorVersion |
protected Integer |
driverMajorVersion |
protected Integer |
driverMinorVersion |
protected String |
driverName |
protected String |
driverVersion |
protected String |
errorMessage |
protected String |
hibernateDialect |
protected String |
JDBCMajorMinorVersion |
protected Integer |
JDBCMajorVersion |
protected Integer |
JDBCMinorVersion |
protected Date |
lastTested |
static org.slf4j.Logger |
logger |
protected String |
status |
static String |
STATUS_CONNECTED |
static String |
STATUS_DISCONNECTED |
static String |
STATUS_ERROR |
protected List<Type> |
types |
Constructor and Description |
---|
ConnectionProvider() |
public static final String copyright
public static final String STATUS_DISCONNECTED
public static final String STATUS_CONNECTED
public static final String STATUS_ERROR
protected String databaseProductName
protected String databaseProductVersion
protected Integer databaseMajorVersion
protected Integer databaseMinorVersion
protected String databaseMajorMinorVersion
protected String driverName
protected String driverVersion
protected Integer driverMajorVersion
protected Integer driverMinorVersion
protected String driverMajorMinorVersion
protected Integer JDBCMajorVersion
protected Integer JDBCMinorVersion
protected String JDBCMajorMinorVersion
protected DatabasePlatform databasePlatform
protected String status
protected String errorMessage
protected Date lastTested
protected Database database
protected String hibernateDialect
public static final org.slf4j.Logger logger
public void init(DatabasePlatformsRegistry databasePlatformsRegistry)
public void shutdown()
protected void readType(ResultSet typeRs) throws SQLException
SQLException
public abstract String getDescription()
public abstract Connection acquireConnection() throws Exception
Exception
public abstract void releaseConnection(Connection conn)
public void afterUnmarshal(Unmarshaller u, Object parent)
public String getStatus()
public String getErrorMessage()
public Date getLastTested()
public DatabasePlatform getDatabasePlatform()
public String getDatabaseProductName()
public String getDatabaseProductVersion()
public Integer getDatabaseMajorVersion()
public Integer getDatabaseMinorVersion()
public String getDatabaseMajorMinorVersion()
public String getDriverName()
public String getDriverVersion()
public Integer getDriverMajorVersion()
public Integer getDriverMinorVersion()
public String getDriverMajorMinorVersion()
public Integer getJDBCMajorVersion()
public Integer getJDBCMinorVersion()
public String getJDBCMajorMinorVersion()
public String getHibernateDialect()
public void setHibernateDialect(String hibernateDialect)
public Database getDatabase()
public void setDatabase(Database database)
public Type[] getTypes()
public boolean isHibernateDialectAutodetected()
public String getActualHibernateDialectName()