public abstract class AbstractDatabaseComponent<T extends DatabaseComponent<?>> extends Object implements DatabaseComponent, ConnectionPoolingSupport
| Modifier and Type | Field and Description |
|---|---|
protected ResourceContext<T> |
resourceContext |
| Constructor and Description |
|---|
AbstractDatabaseComponent() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
PooledConnectionProvider |
getPooledConnectionProvider() |
void |
removeConnection() |
void |
start(ResourceContext resourceContext) |
void |
stop() |
boolean |
supportsConnectionPooling() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAvailabilityprotected ResourceContext<T extends DatabaseComponent<?>> resourceContext
public void start(ResourceContext resourceContext) throws InvalidPluginConfigurationException, Exception
start in interface ResourceComponentInvalidPluginConfigurationExceptionExceptionpublic void stop()
stop in interface ResourceComponentpublic boolean supportsConnectionPooling()
supportsConnectionPooling in interface ConnectionPoolingSupportPooledConnectionProvider, false otherwise.public PooledConnectionProvider getPooledConnectionProvider()
getPooledConnectionProvider in interface ConnectionPoolingSupportPooledConnectionProvider or null if this component does not support connection
pooling.ConnectionPoolingSupport.supportsConnectionPooling()public Connection getConnection()
getConnection in interface DatabaseComponentpublic void removeConnection()
removeConnection in interface DatabaseComponentCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.