org.geotools.arcsde.data.versioning
Class AutoCommitVersionHandler

java.lang.Object
  extended by org.geotools.arcsde.data.versioning.AutoCommitVersionHandler
All Implemented Interfaces:
ArcSdeVersionHandler

public class AutoCommitVersionHandler
extends java.lang.Object
implements ArcSdeVersionHandler

Handles a versioned table when in auto commit mode, meaning it sets up streams to edit directly the version indicated by the provided version name.

Since:
2.5.x
Version:
$Id: AutoCommitVersionHandler.java 33451 2009-07-02 17:53:36Z groldan $
Author:
Gabriel Roldan (TOPP)

Field Summary
 
Fields inherited from interface org.geotools.arcsde.data.versioning.ArcSdeVersionHandler
NONVERSIONED_HANDLER
 
Constructor Summary
AutoCommitVersionHandler(java.lang.String versionName)
           
 
Method Summary
 void commitEditState()
          This method should not be called, but editOperationFailed(SeStreamOp) instead, as this is a handler for auto commit mode
 void editOperationFailed(SeStreamOp editOperation)
          Called when a single edit operation that was settled up with #setUpStream(SeStreamOp) fails
 void editOperationWritten(SeStreamOp editOperation)
          Called after successful execution of any single edit (SeInsert, SeUpdate, SeDelete) operation.
 void rollbackEditState()
          This method should not be called, but editOperationWritten(SeStreamOp) instead, as this is a handler for auto commit mode
 void setUpStream(ISession session, SeStreamOp streamOperation)
          Sets up the stream to work over the version/state needed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoCommitVersionHandler

public AutoCommitVersionHandler(java.lang.String versionName)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

setUpStream

public void setUpStream(ISession session,
                        SeStreamOp streamOperation)
                 throws java.io.IOException
Description copied from interface: ArcSdeVersionHandler
Sets up the stream to work over the version/state needed

Specified by:
setUpStream in interface ArcSdeVersionHandler
Throws:
java.io.IOException

editOperationWritten

public void editOperationWritten(SeStreamOp editOperation)
                          throws java.io.IOException
Description copied from interface: ArcSdeVersionHandler
Called after successful execution of any single edit (SeInsert, SeUpdate, SeDelete) operation.

Specified by:
editOperationWritten in interface ArcSdeVersionHandler
Throws:
java.io.IOException

editOperationFailed

public void editOperationFailed(SeStreamOp editOperation)
                         throws java.io.IOException
Description copied from interface: ArcSdeVersionHandler
Called when a single edit operation that was settled up with #setUpStream(SeStreamOp) fails

Specified by:
editOperationFailed in interface ArcSdeVersionHandler
Throws:
java.io.IOException

commitEditState

public void commitEditState()
                     throws java.io.IOException
This method should not be called, but editOperationFailed(SeStreamOp) instead, as this is a handler for auto commit mode

Specified by:
commitEditState in interface ArcSdeVersionHandler
Throws:
java.lang.UnsupportedOperationException
java.io.IOException
See Also:
ArcSdeVersionHandler#rollbackEditState()}

rollbackEditState

public void rollbackEditState()
                       throws java.io.IOException
This method should not be called, but editOperationWritten(SeStreamOp) instead, as this is a handler for auto commit mode

Specified by:
rollbackEditState in interface ArcSdeVersionHandler
Throws:
java.lang.UnsupportedOperationException
java.io.IOException
See Also:
ArcSdeVersionHandler#rollbackEditState()}


Copyright © 1996-2010 Geotools. All Rights Reserved.