|
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 | |||||||||
public interface DatastoreTransaction
Handler for TransactionOperations (Insert, Update, Delete, Native). One
instance is bound to exactly one Datastore instance (and one Datastore has no more than one active
DatastoreTransaction at a time.
| Method Summary | |
|---|---|
void |
commit()
Makes the changes persistent that have been performed in this transaction. |
Datastore |
getDatastore()
Returns the associated Datastore instance. |
int |
performDelete(MappedFeatureType mappedFeatureType,
Filter filter,
java.lang.String lockId)
Deletes the features from the datastore that are matched by the given filter and type. |
java.util.List<FeatureId> |
performInsert(java.util.List<Feature> features)
Inserts the given feature instances into the datastore. |
int |
performNative(Native operation)
Performs a native operation against the datastore. |
int |
performUpdate(MappedFeatureType mappedFeatureType,
Feature replacementFeature,
Filter filter,
java.lang.String lockId)
Performs a replace-update operation against the datastore. |
int |
performUpdate(MappedFeatureType mappedFeatureType,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter,
java.lang.String lockId)
Performs an update operation against the datastore. |
void |
release()
Releases the transaction instance so other clients may acquire a transaction (and underlying resources, such as JDBCConnections can be cleaned up). |
void |
rollback()
Aborts the changes that have been performed in this transaction. |
| Method Detail |
|---|
Datastore getDatastore()
Datastore instance.
void commit()
throws DatastoreException
DatastoreException
void rollback()
throws DatastoreException
DatastoreException
void release()
throws DatastoreException
DatastoreException
java.util.List<FeatureId> performInsert(java.util.List<Feature> features)
throws DatastoreException
Please note that the features to be inserted must have suitable feature ids at this point.
features -
DatastoreExceptionFeatureIdAssigner
int performUpdate(MappedFeatureType mappedFeatureType,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter,
java.lang.String lockId)
throws DatastoreException
mappedFeatureType - feature type that is to be updatedreplacementProps - properties and their replacement valuesfilter - selects the feature instances that are to be updatedlockId - optional id of associated lock (may be null)
DatastoreException
int performUpdate(MappedFeatureType mappedFeatureType,
Feature replacementFeature,
Filter filter,
java.lang.String lockId)
throws DatastoreException
mappedFeatureType - feature type that is to be replacedreplacementFeature - feature instance that will be used to replace the properties of the selected featuresfilter - selects the feature instances that are to be replacedlockId - optional id of associated lock (may be null)
DatastoreException
int performDelete(MappedFeatureType mappedFeatureType,
Filter filter,
java.lang.String lockId)
throws DatastoreException
mappedFeatureType - filter - lockId - optional id of associated lock (may be null)
DatastoreException
int performNative(Native operation)
throws DatastoreException
operation - operation to perform
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