deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.protocol.wfs.transaction
Class Transaction

java.lang.Object
  extended by org.deegree.protocol.wfs.AbstractWFSRequest
      extended by org.deegree.protocol.wfs.transaction.Transaction

public class Transaction
extends AbstractWFSRequest

Represents a Transaction request to a web feature service.

A Transaction consists of a sequence of Insert, Update, Delete and Native operations.

From the WFS Specification 1.1.0 OGC 04-094 (#12, Pg.63):

A Transaction request is used to describe data transformation operations that are to be applied to web accessible feature instances. When the transaction has been completed, a web feature service will generate an XML response document indicating the completion status of the transaction.

Version:
$Revision: 19069 $, $Date: 2009-08-12 16:20:29 +0200 (Mi, 12 Aug 2009) $
Author:
Markus Schneider , last edited by: $Author: mschneider $

Nested Class Summary
static class Transaction.ReleaseAction
          Controls how locked features are treated when a transaction request is completed.
 
Constructor Summary
Transaction(Version version, String handle, String lockId, Transaction.ReleaseAction releaseAction, Iterable<TransactionOperation> operations)
          Creates a new Transaction request.
 
Method Summary
 String getLockId()
          Returns the lock identifier provided with this transaction.
 Iterable<TransactionOperation> getOperations()
          Returns the TransactionOperations that are contained in the transaction.
 Transaction.ReleaseAction getReleaseAction()
          Returns the release action mode to be applied after the transaction has been executed successfully.
 
Methods inherited from class org.deegree.protocol.wfs.AbstractWFSRequest
getHandle, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transaction

public Transaction(Version version,
                   String handle,
                   String lockId,
                   Transaction.ReleaseAction releaseAction,
                   Iterable<TransactionOperation> operations)
Creates a new Transaction request.

Parameters:
version - protocol version, must not be null
handle - client-generated identifier, can be null
lockId - lockd id, can be null
releaseAction - controls how to treat locked features when the transaction has been completed, can be null (unspecified)
operations - operations to be performed as parts of the transaction, can be null
Method Detail

getLockId

public String getLockId()
Returns the lock identifier provided with this transaction.

Returns:
the lock identifier provided with this transaction, or null if it is unspecified

getReleaseAction

public Transaction.ReleaseAction getReleaseAction()
Returns the release action mode to be applied after the transaction has been executed successfully.

Returns:
the release action mode to be applied after the transaction has been executed successfully, or null if it is unspecified
See Also:
Transaction.ReleaseAction

getOperations

public Iterable<TransactionOperation> getOperations()
Returns the TransactionOperations that are contained in the transaction.

Returns:
the contained operations, can be null

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>