Interface PoolableConnectionMXBean
- All Known Implementing Classes:
- PoolableConnection,- PoolableManagedConnection
public interface PoolableConnectionMXBean
Defines the attributes and methods that will be exposed via JMX for 
PoolableConnection instances.- Since:
- 2.0
- 
Method SummaryModifier and TypeMethodDescriptionvoidClears the cached state.voidvoidclose()Returns this instance to my containing pool.booleanbooleanGets whether to cache properties.intGets the value of theObject.toString()method via a bean getter, so it can be read as a property via JMX.intbooleanisClosed()booleanvoidCloses the underlyingConnection.voidsetAutoCommit(boolean autoCommit) voidsetCacheState(boolean cacheState) Sets whether to cache properties.voidsetCatalog(String catalog) voidsetHoldability(int holdability) voidsetReadOnly(boolean readOnly) voidvoidsetTransactionIsolation(int level) 
- 
Method Details- 
clearCachedStatevoid clearCachedState()Clears the cached state. Call when you know that the underlying connection may have been accessed directly.
- 
clearWarnings- Throws:
- SQLException- See- Connection.clearWarnings().
 
- 
closeReturns this instance to my containing pool.- Throws:
- SQLException- Throw if this instance cannot be returned.
 
- 
getAutoCommit- Returns:
- See Connection.getAutoCommit().
- Throws:
- SQLException- See- Connection.getAutoCommit().
 
- 
getCacheStateboolean getCacheState()Gets whether to cache properties. The cached properties are:- auto-commit
- catalog
- schema
- read-only
 - Returns:
- The value for the state caching flag.
 
- 
getCatalog- Returns:
- See Connection.getCatalog().
- Throws:
- SQLException- See- Connection.getCatalog().
 
- 
getHoldability- Returns:
- See Connection.getHoldability().
- Throws:
- SQLException- See- Connection.getHoldability().
 
- 
getSchema- Returns:
- See Connection.getSchema().
- Throws:
- SQLException- See- Connection.getSchema().
 
- 
getToStringString getToString()Gets the value of theObject.toString()method via a bean getter, so it can be read as a property via JMX.- Returns:
- the value of the Object.toString().
 
- 
getTransactionIsolation- Returns:
- See Connection.getTransactionIsolation().
- Throws:
- SQLException- See- Connection.getTransactionIsolation().
 
- 
isClosed- Returns:
- See Connection.isClosed().
- Throws:
- SQLException- See- Connection.isClosed().
 
- 
isReadOnly- Returns:
- See Connection.isReadOnly().
- Throws:
- SQLException- See- Connection.isReadOnly().
 
- 
reallyCloseCloses the underlyingConnection.- Throws:
- SQLException- Thrown if the connection can be closed.
 
- 
setAutoCommit- Parameters:
- autoCommit- See- Connection.setAutoCommit(boolean).
- Throws:
- SQLException- See- Connection.setAutoCommit(boolean).
 
- 
setCacheStatevoid setCacheState(boolean cacheState) Sets whether to cache properties. The cached properties are:- auto-commit
- catalog
- schema
- read-only
 - Parameters:
- cacheState- The new value for the state caching flag
 
- 
setCatalog- Parameters:
- catalog- See- Connection.setCatalog(String).
- Throws:
- SQLException- See- Connection.setCatalog(String).
 
- 
setHoldability- Parameters:
- holdability-- Connection.setHoldability(int).
- Throws:
- SQLException- See- Connection.setHoldability(int).
 
- 
setReadOnly- Parameters:
- readOnly- See- Connection.setReadOnly(boolean).
- Throws:
- SQLException- See- Connection.setReadOnly(boolean).
 
- 
setSchema- Parameters:
- schema- See- Connection.setSchema(String).
- Throws:
- SQLException- See- Connection.setSchema(String).
 
- 
setTransactionIsolation- Parameters:
- level- See- Connection.setTransactionIsolation(int).
- Throws:
- SQLException- See- Connection.setTransactionIsolation(int).
 
 
-