|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree.ogcwebservices.AbstractOGCWebServiceRequest
org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest
org.deegree.ogcwebservices.wfs.operation.transaction.Transaction
public class Transaction
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.
Nested Class Summary | |
---|---|
static class |
Transaction.RELEASE_ACTION
Controls how locked features are treated when a transaction request is completed. |
Field Summary |
---|
Fields inherited from class org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest |
---|
FORMAT_GML2, FORMAT_GML2_WFS100, FORMAT_GML3, FORMAT_XML |
Constructor Summary | |
---|---|
Transaction(String id,
String version,
Map<String,String> versionSpecificParameter,
String lockID,
List<TransactionOperation> operations,
boolean releaseAllFeatures,
TransactionDocument sourceDocument)
Creates a new Transaction instance. |
Method Summary | |
---|---|
static Transaction |
create(Map<String,String> model)
Creates a Transaction request from a key-value-pair encoding of the parameters
contained in the given Map. |
static Transaction |
create(String id,
Element root)
Creates a Transaction instance from a document that contains the DOM
representation of the request. |
static Transaction |
create(String id,
String request)
Creates a Transaction request from a key-value-pair encoding of the parameters
contained in the passed variable 'request'. |
Set<QualifiedName> |
getAffectedFeatureTypes()
Returns the names of the feature types that are affected by the transaction. |
String |
getLockId()
Returns the lock identifier associated with this transaction. |
List<TransactionOperation> |
getOperations()
Returns the TransactionOperation s that are contained in the transaction. |
Transaction.RELEASE_ACTION |
getReleaseAction()
Returns the release action mode to be applied after the transaction finished successfully. |
TransactionDocument |
getSourceDocument()
Returns the source document that was used to create this Transaction instance. |
String |
toString()
|
Methods inherited from class org.deegree.ogcwebservices.wfs.operation.AbstractWFSRequest |
---|
checkServiceParameter, checkVersionParameter, extractBBOXFilter, extractFilters, extractNamespaceParameter, extractTypeNames, getHandle, getServiceName |
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest |
---|
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Transaction(String id, String version, Map<String,String> versionSpecificParameter, String lockID, List<TransactionOperation> operations, boolean releaseAllFeatures, TransactionDocument sourceDocument)
Transaction
instance.
version
- WFS versionid
- Transaction idversionSpecificParameter
- lockID
- Lock Idoperations
- List of operations to be carried outreleaseAllFeatures
- sourceDocument
- Method Detail |
---|
public TransactionDocument getSourceDocument()
Transaction
instance.
public List<TransactionOperation> getOperations()
TransactionOperation
s that are contained in the transaction.
public String getLockId()
public Transaction.RELEASE_ACTION getReleaseAction()
Transaction.RELEASE_ACTION
public Set<QualifiedName> getAffectedFeatureTypes()
public static Transaction create(String id, String request) throws InconsistentRequestException, InvalidParameterValueException
Transaction
request from a key-value-pair encoding of the parameters
contained in the passed variable 'request'.
id
- id of the requestrequest
- key-value-pair encoded GetFeature request
InconsistentRequestException
InvalidParameterValueException
public static Transaction create(Map<String,String> model) throws InconsistentRequestException, InvalidParameterValueException
Transaction
request from a key-value-pair encoding of the parameters
contained in the given Map.
model
- key-value-pair encoded Transaction request
InconsistentRequestException
InvalidParameterValueException
public static Transaction create(String id, Element root) throws OGCWebServiceException
Transaction
instance from a document that contains the DOM
representation of the request.
id
- root
- element that contains the DOM representation of the request
OGCWebServiceException
public String toString()
toString
in class AbstractOGCWebServiceRequest
|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net