org.apache.lucene.store.jdbc.datasource
Interface ConnectionProxy

All Superinterfaces:
Connection

public interface ConnectionProxy
extends Connection

Subinterface of Connection to be implemented by connection proxies. Allows access to the target connection.

Initial version taken from Spring.

Author:
kimchy

Field Summary
 
Fields inherited from interface java.sql.Connection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE
 
Method Summary
 boolean controlConnection()
          If the given Jdbc Connection actually controls the connection.
 Connection getTargetConnection()
          Return the target connection of this proxy.
 
Methods inherited from interface java.sql.Connection
clearWarnings, close, commit, createStatement, createStatement, createStatement, getAutoCommit, getCatalog, getHoldability, getMetaData, getTransactionIsolation, getTypeMap, getWarnings, isClosed, isReadOnly, nativeSQL, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseSavepoint, rollback, rollback, setAutoCommit, setCatalog, setHoldability, setReadOnly, setSavepoint, setSavepoint, setTransactionIsolation, setTypeMap
 

Method Detail

getTargetConnection

Connection getTargetConnection()
Return the target connection of this proxy.

This will typically either be the native JDBC Connection or a wrapper from a connection pool.


controlConnection

boolean controlConnection()
If the given Jdbc Connection actually controls the connection.

See Also:
TransactionAwareDataSourceProxy, DataSourceUtils.releaseConnection(java.sql.Connection)


Copyright (c) 2004-2009 The Compass Project.