|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureStoreTransaction
Provides transactional access to a FeatureStore
.
Please note that a transaction must always be ended by calling either commit()
or rollback()
.
FeatureStore.acquireTransaction()
Nested Class Summary | |
---|---|
static class |
FeatureStoreTransaction.IDGenMode
Enum type for discriminating the different object id generation policies for inserts. |
Method Summary | |
---|---|
void |
commit()
Makes the changes persistent that have been performed in this transaction and releases the transaction instance so other clients may acquire a transaction on the FeatureStore . |
FeatureStore |
getStore()
Returns the underlying FeatureStore instance. |
int |
performDelete(IdFilter filter,
Lock lock)
Deletes the features from the FeatureStore that are matched by the given filter. |
int |
performDelete(QName ftName,
OperatorFilter filter,
Lock lock)
Deletes the features from the FeatureStore that are matched by the given filter and type. |
List<String> |
performInsert(FeatureCollection fc,
FeatureStoreTransaction.IDGenMode mode)
Inserts the member features of the given FeatureCollection into the FeatureStore . |
int |
performUpdate(QName ftName,
List<Property<?>> replacementProps,
Filter filter,
Lock lock)
Performs an update operation against the FeatureStore . |
void |
rollback()
Aborts the changes that have been performed in this transaction and releases the transaction instance so other clients may acquire a transaction on the FeatureStore . |
Method Detail |
---|
FeatureStore getStore()
FeatureStore
instance.
FeatureStore
instancevoid commit() throws FeatureStoreException
FeatureStore
.
FeatureStoreException
- if the committing failsvoid rollback() throws FeatureStoreException
FeatureStore
.
FeatureStoreException
- if the rollback failsList<String> performInsert(FeatureCollection fc, FeatureStoreTransaction.IDGenMode mode) throws FeatureStoreException
FeatureCollection
into the FeatureStore
.
fc
- contains the member features to be inserted, their types must be served by the feature store and must
not be nullmode
- mode for deriving the ids of the inserted objects
FeatureStoreException
- if the insertion failsint performUpdate(QName ftName, List<Property<?>> replacementProps, Filter filter, Lock lock) throws FeatureStoreException
FeatureStore
.
ftName
- name of the feature type of the features to be updated, must not be null and served by the storereplacementProps
- properties and their replacement valuesfilter
- selects the feature instances that are to be updatedlock
- optional lock object, may be null
FeatureStoreException
- if the update failsint performDelete(QName ftName, OperatorFilter filter, Lock lock) throws FeatureStoreException
FeatureStore
that are matched by the given filter and type.
ftName
- feature type of the features to be deleted, must not be null and served by the storefilter
- filter that determines the features to be deletedlock
- optional lock object, may be null
FeatureStoreException
- if the deletion failsint performDelete(IdFilter filter, Lock lock) throws FeatureStoreException
FeatureStore
that are matched by the given filter.
filter
- filter that determines the features to be deletedlock
- optional lock object, may be null
FeatureStoreException
- if the deletion fails
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |