org.geotools.arcsde.data.versioning
Class TransactionVersionHandler

Object
  extended by TransactionVersionHandler
All Implemented Interfaces:
ArcSdeVersionHandler

public class TransactionVersionHandler
extends Object
implements ArcSdeVersionHandler

Handles a versioned table when in transaction mode

Since:
2.5.x
Author:
Gabriel Roldan (TOPP)
Module:

Field Summary
 
Fields inherited from interface ArcSdeVersionHandler
NONVERSIONED_HANDLER
 
Constructor Summary
TransactionVersionHandler(ISession session, String versionName)
           
 
Method Summary
 void commitEditState()
          Called by ArcTransactionState.commit()
 void editOperationFailed(SeStreamOp editOperation)
          Not called at all
 void editOperationWritten(SeStreamOp editOperation)
          Not called at all
 void rollbackEditState()
          Called by ArcTransactionState.rollback()
 void setUpStream(ISession session, SeStreamOp streamOperation)
          Called by ArcSdeFeatureWriter.createStream
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionVersionHandler

public TransactionVersionHandler(ISession session,
                                 String versionName)
                          throws IOException
Throws:
IOException
Method Detail

setUpStream

public void setUpStream(ISession session,
                        SeStreamOp streamOperation)
                 throws IOException
Called by ArcSdeFeatureWriter.createStream

Specified by:
setUpStream in interface ArcSdeVersionHandler
Throws:
IOException
See Also:
ArcSdeVersionHandler#

editOperationWritten

public void editOperationWritten(SeStreamOp editOperation)
                          throws IOException
Not called at all

Specified by:
editOperationWritten in interface ArcSdeVersionHandler
Throws:
IOException
See Also:
ArcSdeVersionHandler.editOperationWritten(SeStreamOp)

editOperationFailed

public void editOperationFailed(SeStreamOp editOperation)
                         throws IOException
Not called at all

Specified by:
editOperationFailed in interface ArcSdeVersionHandler
Throws:
IOException
See Also:
ArcSdeVersionHandler.editOperationFailed(SeStreamOp)

commitEditState

public void commitEditState()
                     throws IOException
Called by ArcTransactionState.commit()

Specified by:
commitEditState in interface ArcSdeVersionHandler
Throws:
IOException
See Also:
ArcSdeVersionHandler.commitEditState()

rollbackEditState

public void rollbackEditState()
                       throws IOException
Called by ArcTransactionState.rollback()

Specified by:
rollbackEditState in interface ArcSdeVersionHandler
Throws:
IOException
See Also:
ArcSdeVersionHandler.rollbackEditState()


Copyright © 1996-2009 Geotools. All Rights Reserved.