|
deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatastoreTransaction
Handler for TransactionOperation
s (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,
String lockId)
Deletes the features from the datastore that are matched by the given filter and type. |
List<FeatureId> |
performInsert(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,
String lockId)
Performs an update operation against the datastore. |
int |
performUpdate(MappedFeatureType mappedFeatureType,
Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter,
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
List<FeatureId> performInsert(List<Feature> features) throws DatastoreException
Please note that the features to be inserted must have suitable feature ids at this point.
features
-
DatastoreException
FeatureIdAssigner
int performUpdate(MappedFeatureType mappedFeatureType, Map<PropertyPath,FeatureProperty> replacementProps, Filter filter, 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, String lockId) throws DatastoreException
The filter is expected to match exactly one feature which will be replaced by the specified replacement feature.
mappedFeatureType
- feature type that is to be updatedreplacementFeature
- feature instance that will replace the selected featurefilter
- selects the single feature instances that is to be replacedlockId
- optional id of associated lock (may be null)
DatastoreException
int performDelete(MappedFeatureType mappedFeatureType, Filter filter, 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.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net