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()java.lang.StringgetCatalog()intgetHoldability()java.lang.StringgetSchema()java.lang.StringgetToString()intgetTransactionIsolation()booleanisClosed()booleanisReadOnly()voidreallyClose()voidsetAutoCommit(boolean autoCommit)voidsetCacheState(boolean cacheState)voidsetCatalog(java.lang.String catalog)voidsetHoldability(int holdability)voidsetReadOnly(boolean readOnly)voidsetSchema(java.lang.String schema)voidsetTransactionIsolation(int level)
-
-
-
Method Detail
-
clearCachedState
void clearCachedState()
-
clearWarnings
void clearWarnings() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
close
void close() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getAutoCommit
boolean getAutoCommit() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getCacheState
boolean getCacheState()
-
getCatalog
java.lang.String getCatalog() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getHoldability
int getHoldability() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getSchema
java.lang.String getSchema() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getToString
java.lang.String getToString()
-
getTransactionIsolation
int getTransactionIsolation() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isClosed
boolean isClosed() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isReadOnly
boolean isReadOnly() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
reallyClose
void reallyClose() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setAutoCommit
void setAutoCommit(boolean autoCommit) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setCacheState
void setCacheState(boolean cacheState)
-
setCatalog
void setCatalog(java.lang.String catalog) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setHoldability
void setHoldability(int holdability) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setReadOnly
void setReadOnly(boolean readOnly) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setSchema
void setSchema(java.lang.String schema) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
setTransactionIsolation
void setTransactionIsolation(int level) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
-