org.geotools.jdbc
Class JDBCTransactionState

Object
  extended by JDBCTransactionState
All Implemented Interfaces:
Transaction.State

public final class JDBCTransactionState
extends Object
implements Transaction.State

Responsible for flow control; issues commit and rollback on the managed connection.

Module:
modules/library/jdbc (gt-jdbc.jar)

Constructor Summary
JDBCTransactionState(Connection cx, JDBCDataStore dataStore)
           
 
Method Summary
 void addAuthorization(String AuthID)
          Call back used for Transaction.setAuthorization()
 void commit()
          Call back used for Transaction.commit()
protected  void finalize()
           
 void rollback()
          Call back used for Transaction.rollback()
 void setTransaction(Transaction tx)
          Provides configuration information for Transaction.State setTransaction is called with non null transaction when Transaction.State is putState into a Transaction.
 
Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCTransactionState

public JDBCTransactionState(Connection cx,
                            JDBCDataStore dataStore)
Method Detail

setTransaction

public void setTransaction(Transaction tx)
Description copied from interface: Transaction.State
Provides configuration information for Transaction.State

setTransaction is called with non null transaction when Transaction.State is putState into a Transaction. This tranasction will be used to determine correct event notification.

setTransaction is called with null when removeState is called (usually during Transaction.close() ).

Specified by:
setTransaction in interface Transaction.State

addAuthorization

public void addAuthorization(String AuthID)
                      throws IOException
Description copied from interface: Transaction.State
Call back used for Transaction.setAuthorization()

Specified by:
addAuthorization in interface Transaction.State
Throws:
IOException

commit

public void commit()
            throws IOException
Description copied from interface: Transaction.State
Call back used for Transaction.commit()

Specified by:
commit in interface Transaction.State
Throws:
IOException

rollback

public void rollback()
              throws IOException
Description copied from interface: Transaction.State
Call back used for Transaction.rollback()

Specified by:
rollback in interface Transaction.State
Throws:
IOException

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 1996-2009 Geotools. All Rights Reserved.