Package org.apache.tomcat.dbcp.dbcp2
Interface PoolableConnectionMXBean
-
- All Known Implementing Classes:
PoolableConnection,PoolableManagedConnection
public interface PoolableConnectionMXBeanDefines the attributes and methods that will be exposed via JMX forPoolableConnectioninstances.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCachedState()voidclearWarnings()voidclose()booleangetAutoCommit()booleangetCacheState()StringgetCatalog()intgetHoldability()StringgetSchema()StringgetToString()intgetTransactionIsolation()booleanisClosed()booleanisReadOnly()voidreallyClose()voidsetAutoCommit(boolean autoCommit)voidsetCacheState(boolean cacheState)voidsetCatalog(String catalog)voidsetHoldability(int holdability)voidsetReadOnly(boolean readOnly)voidsetSchema(String schema)voidsetTransactionIsolation(int level)
-
-
-
Method Detail
-
clearCachedState
void clearCachedState()
-
clearWarnings
void clearWarnings() throws SQLException- Throws:
SQLException
-
close
void close() throws SQLException- Throws:
SQLException
-
getAutoCommit
boolean getAutoCommit() throws SQLException- Throws:
SQLException
-
getCacheState
boolean getCacheState()
-
getCatalog
String getCatalog() throws SQLException
- Throws:
SQLException
-
getHoldability
int getHoldability() throws SQLException- Throws:
SQLException
-
getSchema
String getSchema() throws SQLException
- Throws:
SQLException
-
getToString
String getToString()
-
getTransactionIsolation
int getTransactionIsolation() throws SQLException- Throws:
SQLException
-
isClosed
boolean isClosed() throws SQLException- Throws:
SQLException
-
isReadOnly
boolean isReadOnly() throws SQLException- Throws:
SQLException
-
reallyClose
void reallyClose() throws SQLException- Throws:
SQLException
-
setAutoCommit
void setAutoCommit(boolean autoCommit) throws SQLException- Throws:
SQLException
-
setCacheState
void setCacheState(boolean cacheState)
-
setCatalog
void setCatalog(String catalog) throws SQLException
- Throws:
SQLException
-
setHoldability
void setHoldability(int holdability) throws SQLException- Throws:
SQLException
-
setReadOnly
void setReadOnly(boolean readOnly) throws SQLException- Throws:
SQLException
-
setSchema
void setSchema(String schema) throws SQLException
- Throws:
SQLException
-
setTransactionIsolation
void setTransactionIsolation(int level) throws SQLException- Throws:
SQLException
-
-