org.geotools.data.store
Class DiffTransactionState

Object
  extended by DiffTransactionState
All Implemented Interfaces:
Transaction.State

public class DiffTransactionState
extends Object
implements Transaction.State

Transaction state responsible for holding an in memory Diff of any modifications.


Field Summary
protected  Diff diff
           
protected  ContentState state
          ContentState for this transaction used to hold information for FeatureReader implementations
protected  Transaction transaction
          The transaction (ie session) associated with this state
 
Constructor Summary
DiffTransactionState(ContentState state)
          Transaction state responsible for holding an in memory Diff.
 
Method Summary
 void addAuthorization(String AuthID)
          Call back used for Transaction.setAuthorization()
 void commit()
          Call back used for Transaction.commit()
 Diff getDiff()
          Access the in memory Diff.
 void rollback()
          Call back used for Transaction.rollback()
 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diff

protected Diff diff

transaction

protected Transaction transaction
The transaction (ie session) associated with this state


state

protected ContentState state
ContentState for this transaction used to hold information for FeatureReader implementations

Constructor Detail

DiffTransactionState

public DiffTransactionState(ContentState state)
Transaction state responsible for holding an in memory Diff.

Parameters:
state - ContentState for the transaction
Method Detail

getDiff

public Diff getDiff()
Access the in memory Diff.

Returns:
in memory diff.

setTransaction

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

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

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


Copyright © 1996-2014 Geotools. All Rights Reserved.