public abstract class JDBCConnectionPool<T extends JDBCConnectionPoolSettings> extends JDBCDataSource<T>
| Constructor and Description |
|---|
JDBCConnectionPool(JDBCServer inServer,
String inDatabaseName) |
JDBCConnectionPool(JDBCServer inServer,
String inDatabaseName,
LoginCredentials inCredentials) |
| Modifier and Type | Method and Description |
|---|---|
JDBCConnectionPool |
addIgnorableBorrowerClass(Class inValue)
Specifies a class to be ignored when tracking connection lending.
|
protected abstract JDBCConnection |
createConnection() |
void |
destroy() |
JDBCConnection |
getConnection() |
int |
getDatabaseMajorVersion() |
int |
getDatabaseMinorVersion() |
String |
getDatabaseVersionString() |
static Logger |
getLogger() |
protected JDBCConnection |
getPoolConnection(StackTraceElement inBorrower) |
String |
getStatusReport() |
protected T |
initSettings() |
getConnection, getCredentials, getDatabaseName, getLoginTimeout, getLogWriter, getParentLogger, getServer, getSettings, isWrapperFor, name, setCredentials, setLoginTimeout, setLogWriter, setName, setParentLogger, setSettings, unwrappublic JDBCConnectionPool(JDBCServer inServer, String inDatabaseName)
public JDBCConnectionPool(JDBCServer inServer, String inDatabaseName, LoginCredentials inCredentials)
public JDBCConnection getConnection() throws SQLException, NoAvailableConnectionException
getConnection in interface DataSourcegetConnection in class JDBCDataSource<T extends JDBCConnectionPoolSettings>SQLExceptionNoAvailableConnectionExceptionpublic void destroy() throws SQLException
SQLExceptionpublic JDBCConnectionPool addIgnorableBorrowerClass(Class inValue)
inValue - a class to be ignored when tracking connection lendingpublic int getDatabaseMajorVersion() throws SQLException
SQLExceptionpublic int getDatabaseMinorVersion() throws SQLException
SQLExceptionpublic String getDatabaseVersionString()
public String getStatusReport()
protected JDBCConnection getPoolConnection(StackTraceElement inBorrower) throws SQLException, NoAvailableConnectionException
protected T initSettings()
initSettings in class JDBCDataSource<T extends JDBCConnectionPoolSettings>protected abstract JDBCConnection createConnection()
jataylor@hairyfatguy.com