|
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.io.datastore.sql.AbstractRequestHandler org.deegree.io.datastore.sql.transaction.UpdateHandler
public class UpdateHandler
Handler for Update
operations (usually contained in Transaction
requests).
Field Summary |
---|
Fields inherited from class org.deegree.io.datastore.sql.AbstractRequestHandler |
---|
aliasGenerator, conn, datastore, FT_COLUMN, FT_PREFIX |
Constructor Summary | |
---|---|
UpdateHandler(SQLTransaction dsTa,
TableAliasGenerator aliasGenerator,
java.sql.Connection conn,
java.lang.String lockId)
Creates a new UpdateHandler from the given parameters. |
Method Summary | |
---|---|
int |
performUpdate(MappedFeatureType mappedFeatureType,
Feature replacementFeature,
Filter filter)
Performs an update operation (replace-style) against the associated datastore. |
int |
performUpdate(MappedFeatureType ft,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter)
Performs an update operation against the associated datastore. |
Methods inherited from class org.deegree.io.datastore.sql.AbstractRequestHandler |
---|
appendColumnsList, appendFeatureIdColumns, appendFeatureIdConstraint, appendFeatureIdConstraint, appendJoinCondition, appendJoins, appendQualifiedColumn, appendQualifiedColumnsList, determineAffectedAndModifiableFIDs, determineAffectedFIDs, determineSubFeatures, determineSuperFeatures, extractFeatureId, extractFeatureIds, extractFeatureIdsForceUnique |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateHandler(SQLTransaction dsTa, TableAliasGenerator aliasGenerator, java.sql.Connection conn, java.lang.String lockId)
UpdateHandler
from the given parameters.
dsTa
- aliasGenerator
- conn
- lockId
- optional id of associated lock (may be null)Method Detail |
---|
public int performUpdate(MappedFeatureType ft, java.util.Map<PropertyPath,FeatureProperty> replacementProps, Filter filter) throws DatastoreException
ft
- replacementProps
- filter
-
DatastoreException
public int performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter) throws DatastoreException
All features matched by the given filter are altered, so their properties are identical to those of the specified replacement feature.
NOTE: Currently, the contained feature must not contain any feature-valued properties or multi-properties.
mappedFeatureType
- replacementFeature
- filter
-
DatastoreException
|
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