public class JndiConnectionProvider extends ConnectionProvider
Modifier and Type | Field and Description |
---|---|
static String |
copyright |
database, databaseMajorMinorVersion, databaseMajorVersion, databaseMinorVersion, databasePlatform, databaseProductName, databaseProductVersion, driverMajorMinorVersion, driverMajorVersion, driverMinorVersion, driverName, driverVersion, errorMessage, hibernateDialect, JDBCMajorMinorVersion, JDBCMajorVersion, JDBCMinorVersion, lastTested, logger, status, STATUS_CONNECTED, STATUS_DISCONNECTED, STATUS_ERROR, types
Constructor and Description |
---|
JndiConnectionProvider() |
Modifier and Type | Method and Description |
---|---|
Connection |
acquireConnection() |
DataSource |
getDataSource() |
String |
getDescription() |
String |
getJndiResource() |
void |
releaseConnection(Connection conn) |
void |
setJndiResource(String jndiResource) |
afterUnmarshal, equals, fixMissingTypeAliases, getActualHibernateDialectName, getDatabase, getDatabaseMajorMinorVersion, getDatabaseMajorVersion, getDatabaseMinorVersion, getDatabasePlatform, getDatabaseProductName, getDatabaseProductVersion, getDriverMajorMinorVersion, getDriverMajorVersion, getDriverMinorVersion, getDriverName, getDriverVersion, getErrorMessage, getHibernateDialect, getJDBCMajorMinorVersion, getJDBCMajorVersion, getJDBCMinorVersion, getLastTested, getStatus, getTypes, hashCode, init, isHibernateDialectAutodetected, readType, setDatabase, setHibernateDialect, shutdown
public static final String copyright
public String getDescription()
getDescription
in class ConnectionProvider
public Connection acquireConnection() throws Exception
acquireConnection
in class ConnectionProvider
Exception
public DataSource getDataSource() throws Exception
Exception
public void releaseConnection(Connection conn)
releaseConnection
in class ConnectionProvider
public String getJndiResource()
public void setJndiResource(String jndiResource)