com.interface21.jdbc.datasource
Class ConnectionHolder

java.lang.Object
  |
  +--com.interface21.jdbc.datasource.ConnectionHolder

public class ConnectionHolder
extends java.lang.Object

Connection holder, wrapping a JDBC Connection. Features rollback-only support for nested JDBC transactions.

DataSourceTransactionManager binds instances of this class to the thread, for a given DataSource.

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

Constructor Summary
ConnectionHolder(java.sql.Connection connection)
           
 
Method Summary
 java.sql.Connection getConnection()
           
 boolean isRollbackOnly()
           
 void setRollbackOnly()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionHolder

public ConnectionHolder(java.sql.Connection connection)
Method Detail

getConnection

public java.sql.Connection getConnection()

setRollbackOnly

public void setRollbackOnly()

isRollbackOnly

public boolean isRollbackOnly()


Rod Johnson and Spring contributors 2001-2003.