org.geotools.data
Interface Transaction.State

All Known Implementing Classes:
JDBCTransactionState, TransactionStateDiff
Enclosing interface:
Transaction

public static interface Transaction.State

DataStore implementations can use this interface to externalize the state they require to implement Transaction Support.

The commit and rollback methods will be called as required. The intension is that several DataStores can share common transaction state (example: Postgis DataStores sharing a connection to the same database).

Version:
CVS Version
Author:
jgarnett, Refractions Reasearch Inc.
See Also:
org.geotools.data

Method Summary
 void addAuthorization(java.lang.String AuthID)
          Call back used for Transaction.setAuthorization()
 void commit()
          Call back used for Transaction.commit()
 void rollback()
          Call back used for Transaction.rollback()
 void setTransaction(Transaction transaction)
          Provides configuration information for Transaction.State
 

Method Detail

setTransaction

public void setTransaction(Transaction transaction)
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() ).

Parameters:
transaction -

addAuthorization

public void addAuthorization(java.lang.String AuthID)
                      throws java.io.IOException
Call back used for Transaction.setAuthorization()

Throws:
java.io.IOException

commit

public void commit()
            throws java.io.IOException
Call back used for Transaction.commit()

Throws:
java.io.IOException

rollback

public void rollback()
              throws java.io.IOException
Call back used for Transaction.rollback()

Throws:
java.io.IOException


Copyright © 1996-2003 GeoTools. All Rights Reserved.