org.geotools.arcsde.data.versioning
Interface ArcSdeVersionHandler

All Known Implementing Classes:
AutoCommitVersionHandler, TransactionVersionHandler

public interface ArcSdeVersionHandler

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

Field Summary
static ArcSdeVersionHandler NONVERSIONED_HANDLER
          Null object to handle non versioned tables, does nothing.
 
Method Summary
 void commitEditState()
          Causes the current version to synchronize with the current edit state.
 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()
          Called when a transaction is being rolled back
 void setUpStream(ISession session, SeStreamOp streamOperation)
          Sets up the stream to work over the version/state needed
 

Field Detail

NONVERSIONED_HANDLER

static final ArcSdeVersionHandler NONVERSIONED_HANDLER
Null object to handle non versioned tables, does nothing.

Method Detail

setUpStream

void setUpStream(ISession session,
                 SeStreamOp streamOperation)
                 throws java.io.IOException
Sets up the stream to work over the version/state needed

Parameters:
streamOperation -
Throws:
java.io.IOException

editOperationFailed

void editOperationFailed(SeStreamOp editOperation)
                         throws java.io.IOException
Called when a single edit operation that was settled up with #setUpStream(SeStreamOp) fails

Throws:
java.io.IOException

editOperationWritten

void editOperationWritten(SeStreamOp editOperation)
                          throws java.io.IOException
Called after successful execution of any single edit (SeInsert, SeUpdate, SeDelete) operation.

Parameters:
editOperation -
Throws:
java.io.IOException

commitEditState

void commitEditState()
                     throws java.io.IOException
Causes the current version to synchronize with the current edit state.

Throws:
java.io.IOException

rollbackEditState

void rollbackEditState()
                       throws java.io.IOException
Called when a transaction is being rolled back

Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.