| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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,
                           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 a replace-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 - 
DatastoreExceptionFeatureIdAssigner
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
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,
                  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.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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