|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.wfs.operation.transaction.TransactionOperation org.deegree.ogcwebservices.wfs.operation.transaction.Update
public class Update
Represents an Update
operation as a part of a Transaction
request.
WFS Specification OBC 04-094 (#12.2.5 Pg.68)
The Update
element describes one update operation that is to be applied to a Feature
or a
set of Feature
s of a single FeatureType
.
Multiple Update
operations can be contained in a single Transaction
request. An
Update
element contains one or more Property elements that specify the name and replacement value
for a property that belongs to the FeatureType
specified using the mandatory typeName attribute.
Additionally, a deegree specific addition to this specification is supported:
Instead of a number of properties, it is also possible to specify a root feature that will replace the feature that
is matched by the filter. In this case, the filter must match exactly one (or zero) feature instances.
Constructor Summary | |
---|---|
Update(java.lang.String handle,
QualifiedName typeName,
Feature replacementFeature,
Filter filter)
Creates a new Update instance. |
|
Update(java.lang.String handle,
QualifiedName typeName,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter)
Creates a new Update instance. |
|
Update(java.lang.String handle,
QualifiedName typeName,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
java.util.Map<PropertyPath,org.w3c.dom.Node> rawProps,
Filter filter)
Deprecated. This method breaks the layering -- it makes the DOM representation available. |
Method Summary | |
---|---|
java.util.List<QualifiedName> |
getAffectedFeatureTypes()
Returns the names of the feature types that are affected by the operation. |
Feature |
getFeature()
Returns the feature that will replace the matched feature instance. |
Filter |
getFilter()
Returns the filter that selects the feature instances to be updated. |
java.util.Map<PropertyPath,org.w3c.dom.Node> |
getRawProperties()
Deprecated. This method breaks the layering -- it makes the DOM representation available. |
java.util.Map<PropertyPath,FeatureProperty> |
getReplacementProperties()
Return the properties and their replacement values that are targeted by this update operation. |
QualifiedName |
getTypeName()
Returns the name of the targeted feature type. |
void |
setFilter(Filter filter)
Sets the filter that determines the features that are affected by the operation. |
void |
setReplacementProperties(java.util.Map<PropertyPath,FeatureProperty> replacementProps)
Setter method for replacement properties |
void |
setTypeName(QualifiedName typeName)
TypeName setter method |
Methods inherited from class org.deegree.ogcwebservices.wfs.operation.transaction.TransactionOperation |
---|
getHandle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Update(java.lang.String handle, QualifiedName typeName, java.util.Map<PropertyPath,FeatureProperty> replacementProps, Filter filter)
Update
instance.
handle
- optional identifier for the operation (for error messsages)typeName
- the name of the targeted feature typereplacementProps
- property paths and their replacement valuesfilter
- selects the feature instances to be updated@Deprecated Update(java.lang.String handle, QualifiedName typeName, java.util.Map<PropertyPath,FeatureProperty> replacementProps, java.util.Map<PropertyPath,org.w3c.dom.Node> rawProps, Filter filter)
Update
instance.
NOTE: This constructor will be removed in the future, because it makes the DOM representation available and breaks the layering (DOM should not be used on this level).
handle
- optional identifier for the operation (for error messsages)typeName
- the name of the targeted feature typereplacementProps
- property paths and their replacement valuesrawProps
- property paths and their DOM nodesfilter
- selects the feature instances to be updatedpublic Update(java.lang.String handle, QualifiedName typeName, Feature replacementFeature, Filter filter)
Update
instance.
handle
- optional identifier for the operation (for error messsages)typeName
- the name of the targeted feature typereplacementFeature
- property names and their replacement valuesfilter
- selects the (single) feature instance to be replacedMethod Detail |
---|
public QualifiedName getTypeName()
public void setTypeName(QualifiedName typeName)
typeName
- a public Filter getFilter()
public void setFilter(Filter filter)
filter
- determines the features that are affected by the operationpublic Feature getFeature()
public java.util.Map<PropertyPath,FeatureProperty> getReplacementProperties()
public void setReplacementProperties(java.util.Map<PropertyPath,FeatureProperty> replacementProps)
replacementProps
- a map between PropertyPath
s and FeatureProperty
s@Deprecated public java.util.Map<PropertyPath,org.w3c.dom.Node> getRawProperties()
public java.util.List<QualifiedName> getAffectedFeatureTypes()
TransactionOperation
getAffectedFeatureTypes
in class TransactionOperation
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org