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, unwrap
public JDBCConnectionPool(JDBCServer inServer, String inDatabaseName)
public JDBCConnectionPool(JDBCServer inServer, String inDatabaseName, LoginCredentials inCredentials)
public JDBCConnection getConnection() throws SQLException, NoAvailableConnectionException
getConnection
in interface DataSource
getConnection
in class JDBCDataSource<T extends JDBCConnectionPoolSettings>
SQLException
NoAvailableConnectionException
public void destroy() throws SQLException
SQLException
public JDBCConnectionPool addIgnorableBorrowerClass(Class inValue)
inValue
- a class to be ignored when tracking connection lendingpublic int getDatabaseMajorVersion() throws SQLException
SQLException
public int getDatabaseMinorVersion() throws SQLException
SQLException
public 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