Package org.geotools.api.data
Interface Transaction.State
- All Known Implementing Classes:
- DiffTransactionState
- 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).
- Author:
- jgarnett, Refractions Reasearch Inc.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddAuthorization(String AuthID) Call back used for Transaction.setAuthorization()voidcommit()Call back used for Transaction.commit()voidrollback()Call back used for Transaction.rollback()voidsetTransaction(Transaction transaction) Provides configuration information for Transaction.State
- 
Method Details- 
setTransactionProvides configuration information for Transaction.StatesetTransaction is called with non null transactionwhen Transaction.State isputStateinto a Transaction. This tranasction will be used to determine correct event notification.setTransaction is called with nullwhen removeState is called (usually during Transaction.close() ).
- 
addAuthorizationCall back used for Transaction.setAuthorization()- Throws:
- IOException
 
- 
commitCall back used for Transaction.commit()- Throws:
- IOException
 
- 
rollbackCall back used for Transaction.rollback()- Throws:
- IOException
 
 
-