org.apache.avalon.excalibur.datasource
Class JdbcConnection

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
              |
              +--org.apache.avalon.excalibur.datasource.JdbcConnection
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

public synchronized class JdbcConnection
extends AbstractJdbcConnection


Fields inherited from class org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
m_connection, m_lastUsed, m_pool, m_testException, m_testStatement
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Constructor Summary
JdbcConnection(java.sql.Connection, java.lang.String)
           
 
Method Summary
 void clearWarnings()
           
 void commit()
           
 java.sql.Statement createStatement()
           
 java.sql.Statement createStatement(int, int)
           
 boolean getAutoCommit()
           
 java.lang.String getCatalog()
           
 java.sql.DatabaseMetaData getMetaData()
           
 int getTransactionIsolation()
           
 java.util.Map getTypeMap()
           
 java.sql.SQLWarning getWarnings()
           
 boolean isReadOnly()
           
 java.lang.String nativeSQL(java.lang.String)
           
 java.sql.CallableStatement prepareCall(java.lang.String)
           
 java.sql.CallableStatement prepareCall(java.lang.String, int, int)
           
 java.sql.PreparedStatement prepareStatement(java.lang.String)
           
 java.sql.PreparedStatement prepareStatement(java.lang.String, int, int)
           
 void rollback()
           
 void setAutoCommit(boolean)
           
 void setCatalog(java.lang.String)
           
 void setReadOnly(boolean)
           
 void setTransactionIsolation(int)
           
 void setTypeMap(java.util.Map)
           
 
Methods inherited from class org.apache.avalon.excalibur.datasource.AbstractJdbcConnection
close, dispose, enableLogging, initialize, isClosed, recycle, setPool
 
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
 

Constructor Detail

JdbcConnection

public JdbcConnection(java.sql.Connection,
                      java.lang.String)
Method Detail

createStatement

public final java.sql.Statement createStatement()
                                         throws java.sql.SQLException
Overrides:
createStatement in class AbstractJdbcConnection

prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String)
                                                  throws java.sql.SQLException
Overrides:
prepareStatement in class AbstractJdbcConnection

prepareCall

public final java.sql.CallableStatement prepareCall(java.lang.String)
                                             throws java.sql.SQLException
Overrides:
prepareCall in class AbstractJdbcConnection

nativeSQL

public final java.lang.String nativeSQL(java.lang.String)
                                 throws java.sql.SQLException
Overrides:
nativeSQL in class AbstractJdbcConnection

setAutoCommit

public final void setAutoCommit(boolean)
                         throws java.sql.SQLException
Overrides:
setAutoCommit in class AbstractJdbcConnection

getAutoCommit

public final boolean getAutoCommit()
                            throws java.sql.SQLException
Overrides:
getAutoCommit in class AbstractJdbcConnection

commit

public final void commit()
                  throws java.sql.SQLException
Overrides:
commit in class AbstractJdbcConnection

rollback

public final void rollback()
                    throws java.sql.SQLException
Overrides:
rollback in class AbstractJdbcConnection

getMetaData

public final java.sql.DatabaseMetaData getMetaData()
                                            throws java.sql.SQLException
Overrides:
getMetaData in class AbstractJdbcConnection

setReadOnly

public final void setReadOnly(boolean)
                       throws java.sql.SQLException
Overrides:
setReadOnly in class AbstractJdbcConnection

isReadOnly

public final boolean isReadOnly()
                         throws java.sql.SQLException
Overrides:
isReadOnly in class AbstractJdbcConnection

setCatalog

public final void setCatalog(java.lang.String)
                      throws java.sql.SQLException
Overrides:
setCatalog in class AbstractJdbcConnection

getCatalog

public final java.lang.String getCatalog()
                                  throws java.sql.SQLException
Overrides:
getCatalog in class AbstractJdbcConnection

setTransactionIsolation

public final void setTransactionIsolation(int)
                                   throws java.sql.SQLException
Overrides:
setTransactionIsolation in class AbstractJdbcConnection

getTransactionIsolation

public final int getTransactionIsolation()
                                  throws java.sql.SQLException
Overrides:
getTransactionIsolation in class AbstractJdbcConnection

getWarnings

public final java.sql.SQLWarning getWarnings()
                                      throws java.sql.SQLException
Overrides:
getWarnings in class AbstractJdbcConnection

clearWarnings

public final void clearWarnings()
                         throws java.sql.SQLException
Overrides:
clearWarnings in class AbstractJdbcConnection

createStatement

public final java.sql.Statement createStatement(int,
                                                int)
                                         throws java.sql.SQLException
Overrides:
createStatement in class AbstractJdbcConnection

prepareStatement

public final java.sql.PreparedStatement prepareStatement(java.lang.String,
                                                         int,
                                                         int)
                                                  throws java.sql.SQLException
Overrides:
prepareStatement in class AbstractJdbcConnection

prepareCall

public final java.sql.CallableStatement prepareCall(java.lang.String,
                                                    int,
                                                    int)
                                             throws java.sql.SQLException
Overrides:
prepareCall in class AbstractJdbcConnection

getTypeMap

public final java.util.Map getTypeMap()
                               throws java.sql.SQLException
Overrides:
getTypeMap in class AbstractJdbcConnection

setTypeMap

public final void setTypeMap(java.util.Map)
                      throws java.sql.SQLException
Overrides:
setTypeMap in class AbstractJdbcConnection


Copyright 2001 Apache Jakarta Project. All Rights Reserved.