org.springframework.jdbc.datasource
Class ConnectionHolder

java.lang.Object
  extended byorg.springframework.transaction.support.ResourceHolderSupport
      extended byorg.springframework.jdbc.datasource.ConnectionHolder

public class ConnectionHolder
extends ResourceHolderSupport

Connection holder, wrapping a JDBC Connection. DataSourceTransactionManager binds instances of this class to the thread, for a given DataSource.

Inherits rollback-only support for nested JDBC transactions and reference count functionality from the base class.

Note: This is an SPI class, not intended to be used by applications.

Since:
06.05.2003
Author:
Juergen Hoeller
See Also:
DataSourceTransactionManager, DataSourceUtils

Constructor Summary
ConnectionHolder(Connection connection)
           
ConnectionHolder(ConnectionHandle connectionHandle)
           
 
Method Summary
 Connection getConnection()
           
 ConnectionHandle getConnectionHandle()
           
 
Methods inherited from class org.springframework.transaction.support.ResourceHolderSupport
clear, getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, released, requested, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHolder

public ConnectionHolder(ConnectionHandle connectionHandle)

ConnectionHolder

public ConnectionHolder(Connection connection)
Method Detail

getConnectionHandle

public ConnectionHandle getConnectionHandle()

getConnection

public Connection getConnection()


Copyright (C) 2003-2004 The Spring Framework Project.