|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Features 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(String handle,
QualifiedName typeName,
Feature replacementFeature,
Filter filter)
Creates a new Update instance. |
|
Update(String handle,
QualifiedName typeName,
Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter)
Creates a new Update instance. |
|
Update(String handle,
QualifiedName typeName,
Map<PropertyPath,FeatureProperty> replacementProps,
Map<PropertyPath,Node> rawProps,
Filter filter)
Deprecated. This method breaks the layering -- it makes the DOM representation available. |
|
| Method Summary | |
|---|---|
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. |
Map<PropertyPath,Node> |
getRawProperties()
Deprecated. This method breaks the layering -- it makes the DOM representation available. |
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. |
| 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(String handle,
QualifiedName typeName,
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(String handle,
QualifiedName typeName,
Map<PropertyPath,FeatureProperty> replacementProps,
Map<PropertyPath,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 updated
public Update(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 replaced| Method Detail |
|---|
public QualifiedName getTypeName()
public Filter getFilter()
public void setFilter(Filter filter)
filter - determines the features that are affected by the operationpublic Feature getFeature()
public Map<PropertyPath,FeatureProperty> getReplacementProperties()
@Deprecated public Map<PropertyPath,Node> getRawProperties()
public List<QualifiedName> getAffectedFeatureTypes()
TransactionOperation
getAffectedFeatureTypes in class TransactionOperation
|
deegree 2.3 (2010/04/09 10:10 build-4-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