deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.ogcwebservices.csw.manager
Class Transaction

java.lang.Object
  extended by org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
      extended by org.deegree.ogcwebservices.csw.manager.Transaction
All Implemented Interfaces:
Serializable, OGCWebServiceRequest

public class Transaction
extends AbstractOGCWebServiceRequest

A Transaction defines an atomic unit of work and is a container for one or more insert, update and/or delete actions.

Version:
$Revision: 18195 $, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Andreas Poth, last edited by: $Author: mschneider $
See Also:
Serialized Form

Field Summary
protected static ILogger LOG
           
 
Constructor Summary
Transaction(String version, String id, Map<String,String> vendorSpecificParameter, List<Operation> operations, boolean verboseResponse)
           
 
Method Summary
static Transaction create(String id, Element root)
          creates a Transaction object from its XML representation defined in OGC CS-W 2.0.0 specification
 List<Operation> getOperations()
          returns all operations being part of a transaction
 String getServiceName()
           
 boolean verboseResponse()
          The verboseResponseattribute is a boolean that may be used by a client to indicate to a server the amount of detail to generate in the rsponse.
 
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LOG

protected static final ILogger LOG
Constructor Detail

Transaction

public Transaction(String version,
                   String id,
                   Map<String,String> vendorSpecificParameter,
                   List<Operation> operations,
                   boolean verboseResponse)
Parameters:
version -
id -
vendorSpecificParameter -
operations -
verboseResponse -
Method Detail

create

public static final Transaction create(String id,
                                       Element root)
                                throws OGCWebServiceException
creates a Transaction object from its XML representation defined in OGC CS-W 2.0.0 specification

Parameters:
id - uniquely identifies the given request
root - the root of the xml-encoded transaction request
Returns:
a Transaction with the values taken form the XML-Document.
Throws:
OGCWebServiceException - if the Transaction could not be created

getServiceName

public String getServiceName()
Returns:
the name of the service; always CSW

verboseResponse

public boolean verboseResponse()
The verboseResponseattribute is a boolean that may be used by a client to indicate to a server the amount of detail to generate in the rsponse. A value of FALSE means that a CSW should generate a terse or brief transaction response. A value of TRUE, or the absence of the attribute, means that the normal detailed transaction response should be generated.

Returns:
true if the response should be verbose

getOperations

public List<Operation> getOperations()
returns all operations being part of a transaction

Returns:
all operations being part of a transaction

deegree 2.3 (2010/04/09 10:10 build-4-official)

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