| org.deegree.io.datastore.DatastoreTransaction
All known Subclasses: org.deegree.io.datastore.sql.transaction.SQLTransaction, org.deegree.io.datastore.sde.SDETransaction,
Method Summary | |
public void | commit() Makes the changes persistent that have been performed in this transaction. | public Datastore | getDatastore() Returns the associated
Datastore instance. | public int | performDelete(MappedFeatureType mappedFeatureType, Filter filter, String lockId) Deletes the features from the datastore that are matched by the given filter and type. | public List<FeatureId> | performInsert(List<Feature> features) Inserts the given feature instances into the datastore. | public int | performNative(Native operation) Performs a native operation against the datastore. | public int | performUpdate(MappedFeatureType mappedFeatureType, Map<PropertyPath, FeatureProperty> replacementProps, Filter filter, String lockId) Performs an update operation against the datastore. | public int | performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, String lockId) Performs an update operation against the datastore. | public void | release() Releases the transaction instance so other clients may acquire a transaction (and underlying resources, such as
JDBCConnections can be cleaned up). | public void | rollback() Aborts the changes that have been performed in this transaction. |
getDatastore | public Datastore getDatastore()(Code) | | Returns the associated
Datastore instance.
the associated Datastore instance |
performDelete | public int performDelete(MappedFeatureType mappedFeatureType, Filter filter, String lockId) throws DatastoreException(Code) | | Deletes the features from the datastore that are matched by the given filter and type.
Parameters: mappedFeatureType - Parameters: filter - Parameters: lockId - optional id of associated lock (may be null) number of deleted feature instances throws: DatastoreException - |
performUpdate | public int performUpdate(MappedFeatureType mappedFeatureType, Map<PropertyPath, FeatureProperty> replacementProps, Filter filter, String lockId) throws DatastoreException(Code) | | Performs an update operation against the datastore.
Parameters: mappedFeatureType - feature type that is to be updated Parameters: replacementProps - properties and their replacement values Parameters: filter - selects the feature instances that are to be updated Parameters: lockId - optional id of associated lock (may be null) number of updated feature instances throws: DatastoreException - |
performUpdate | public int performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, String lockId) throws DatastoreException(Code) | | Performs an update operation against the datastore.
The filter is expected to match exactly one feature which will be replaced by the specified replacement feature.
Parameters: mappedFeatureType - feature type that is to be updated Parameters: replacementFeature - feature instance that will replace the selected feature Parameters: filter - selects the single feature instances that is to be replaced Parameters: lockId - optional id of associated lock (may be null) number of updated feature instances (must be 0 or 1) throws: DatastoreException - |
release | public void release() throws DatastoreException(Code) | | Releases the transaction instance so other clients may acquire a transaction (and underlying resources, such as
JDBCConnections can be cleaned up).
throws: DatastoreException - |
|
|