org.springframework.jdbc.datasource
Class DataSourceTransactionObject

java.lang.Object
  extended byorg.springframework.jdbc.datasource.DataSourceTransactionObject

public class DataSourceTransactionObject
extends java.lang.Object

DataSource transaction object, representing a ConnectionHolder. Used as transaction object by DataSourceTransactionManager.

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

Since:
02.05.2003
Version:
$Id: DataSourceTransactionObject.java,v 1.6 2004/03/18 02:46:05 trisberg Exp $
Author:
Juergen Hoeller
See Also:
DataSourceTransactionManager, ConnectionHolder

Constructor Summary
protected DataSourceTransactionObject()
          Create DataSourceTransactionObject for new ConnectionHolder.
protected DataSourceTransactionObject(ConnectionHolder connectionHolder)
          Create DataSourceTransactionObject for existing ConnectionHolder.
 
Method Summary
 ConnectionHolder getConnectionHolder()
           
 boolean getMustRestoreAutoCommit()
           
 java.lang.Integer getPreviousIsolationLevel()
           
protected  void setConnectionHolder(ConnectionHolder connectionHolder)
          Set new ConnectionHolder.
 void setMustRestoreAutoCommit(boolean mustRestoreAutoCommit)
           
protected  void setPreviousIsolationLevel(java.lang.Integer previousIsolationLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceTransactionObject

protected DataSourceTransactionObject()
Create DataSourceTransactionObject for new ConnectionHolder.


DataSourceTransactionObject

protected DataSourceTransactionObject(ConnectionHolder connectionHolder)
Create DataSourceTransactionObject for existing ConnectionHolder.

Method Detail

setConnectionHolder

protected void setConnectionHolder(ConnectionHolder connectionHolder)
Set new ConnectionHolder.


getConnectionHolder

public ConnectionHolder getConnectionHolder()

setPreviousIsolationLevel

protected void setPreviousIsolationLevel(java.lang.Integer previousIsolationLevel)

getPreviousIsolationLevel

public java.lang.Integer getPreviousIsolationLevel()

setMustRestoreAutoCommit

public void setMustRestoreAutoCommit(boolean mustRestoreAutoCommit)

getMustRestoreAutoCommit

public boolean getMustRestoreAutoCommit()


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