org.apache.avalon.excalibur.datasource
Class AbstractJdbcConnection
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLogEnabled
|
+--org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
- All Implemented Interfaces:
- java.sql.Connection, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.logger.LogEnabled, Poolable, Recyclable
- Direct Known Subclasses:
- JdbcConnection
- public abstract synchronized class AbstractJdbcConnection
- extends org.apache.avalon.framework.logger.AbstractLogEnabled
- implements java.sql.Connection, Recyclable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.activity.Initializable
Fields inherited from interface java.sql.Connection |
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_connection
protected java.sql.Connection m_connection
m_pool
protected Pool m_pool
m_testStatement
protected java.sql.PreparedStatement m_testStatement
m_testException
protected java.sql.SQLException m_testException
m_lastUsed
protected long m_lastUsed
AbstractJdbcConnection
public AbstractJdbcConnection(java.sql.Connection,
boolean)
AbstractJdbcConnection
public AbstractJdbcConnection(java.sql.Connection,
java.lang.String)
initialize
public void initialize()
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
enableLogging
public void enableLogging(org.apache.avalon.framework.logger.Logger)
- Overrides:
enableLogging
in class org.apache.avalon.framework.logger.AbstractLogEnabled
setPool
protected void setPool(Pool)
recycle
public void recycle()
- Specified by:
recycle
in interface Recyclable
isClosed
public boolean isClosed()
throws java.sql.SQLException
- Specified by:
isClosed
in interface java.sql.Connection
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface java.sql.Connection
dispose
public void dispose()
- Specified by:
dispose
in interface org.apache.avalon.framework.activity.Disposable
setTypeMap
public abstract void setTypeMap(java.util.Map)
throws java.sql.SQLException
- Specified by:
setTypeMap
in interface java.sql.Connection
getTypeMap
public abstract java.util.Map getTypeMap()
throws java.sql.SQLException
- Specified by:
getTypeMap
in interface java.sql.Connection
prepareCall
public abstract java.sql.CallableStatement prepareCall(java.lang.String,
int,
int)
throws java.sql.SQLException
- Specified by:
prepareCall
in interface java.sql.Connection
prepareStatement
public abstract java.sql.PreparedStatement prepareStatement(java.lang.String,
int,
int)
throws java.sql.SQLException
- Specified by:
prepareStatement
in interface java.sql.Connection
createStatement
public abstract java.sql.Statement createStatement(int,
int)
throws java.sql.SQLException
- Specified by:
createStatement
in interface java.sql.Connection
clearWarnings
public abstract void clearWarnings()
throws java.sql.SQLException
- Specified by:
clearWarnings
in interface java.sql.Connection
getWarnings
public abstract java.sql.SQLWarning getWarnings()
throws java.sql.SQLException
- Specified by:
getWarnings
in interface java.sql.Connection
getTransactionIsolation
public abstract int getTransactionIsolation()
throws java.sql.SQLException
- Specified by:
getTransactionIsolation
in interface java.sql.Connection
setTransactionIsolation
public abstract void setTransactionIsolation(int)
throws java.sql.SQLException
- Specified by:
setTransactionIsolation
in interface java.sql.Connection
getCatalog
public abstract java.lang.String getCatalog()
throws java.sql.SQLException
- Specified by:
getCatalog
in interface java.sql.Connection
setCatalog
public abstract void setCatalog(java.lang.String)
throws java.sql.SQLException
- Specified by:
setCatalog
in interface java.sql.Connection
isReadOnly
public abstract boolean isReadOnly()
throws java.sql.SQLException
- Specified by:
isReadOnly
in interface java.sql.Connection
setReadOnly
public abstract void setReadOnly(boolean)
throws java.sql.SQLException
- Specified by:
setReadOnly
in interface java.sql.Connection
getMetaData
public abstract java.sql.DatabaseMetaData getMetaData()
throws java.sql.SQLException
- Specified by:
getMetaData
in interface java.sql.Connection
rollback
public abstract void rollback()
throws java.sql.SQLException
- Specified by:
rollback
in interface java.sql.Connection
commit
public abstract void commit()
throws java.sql.SQLException
- Specified by:
commit
in interface java.sql.Connection
getAutoCommit
public abstract boolean getAutoCommit()
throws java.sql.SQLException
- Specified by:
getAutoCommit
in interface java.sql.Connection
setAutoCommit
public abstract void setAutoCommit(boolean)
throws java.sql.SQLException
- Specified by:
setAutoCommit
in interface java.sql.Connection
nativeSQL
public abstract java.lang.String nativeSQL(java.lang.String)
throws java.sql.SQLException
- Specified by:
nativeSQL
in interface java.sql.Connection
prepareCall
public abstract java.sql.CallableStatement prepareCall(java.lang.String)
throws java.sql.SQLException
- Specified by:
prepareCall
in interface java.sql.Connection
prepareStatement
public abstract java.sql.PreparedStatement prepareStatement(java.lang.String)
throws java.sql.SQLException
- Specified by:
prepareStatement
in interface java.sql.Connection
createStatement
public abstract java.sql.Statement createStatement()
throws java.sql.SQLException
- Specified by:
createStatement
in interface java.sql.Connection
Copyright © 2001 Apache Jakarta Project. All Rights Reserved.