org.deegree.ogcwebservices.csw.manager
Class Transaction
java.lang.Object
org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
org.deegree.ogcwebservices.csw.manager.Transaction
- All Implemented Interfaces:
- java.io.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
Constructor Summary |
Transaction(java.lang.String version,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter,
java.util.List<Operation> operations,
boolean verboseResponse)
|
Method Summary |
static Transaction |
create(java.lang.String id,
org.w3c.dom.Element root)
creates a Transaction object from its XML representation defined in OGC CS-W 2.0.0
specification |
java.util.List<Operation> |
getOperations()
returns all operations being part of a transaction |
java.lang.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LOG
protected static final ILogger LOG
Transaction
public Transaction(java.lang.String version,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter,
java.util.List<Operation> operations,
boolean verboseResponse)
- Parameters:
version
- id
- vendorSpecificParameter
- operations
- verboseResponse
-
create
public static final Transaction create(java.lang.String id,
org.w3c.dom.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 requestroot
- 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 java.lang.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 java.util.List<Operation> getOperations()
- returns all operations being part of a transaction
- Returns:
- all operations being part of a transaction
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org