|
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 | |||||||||
java.lang.Objectorg.deegree.feature.persistence.postgis.PostGISFeatureStoreTransaction
public class PostGISFeatureStoreTransaction
FeatureStoreTransaction implementation used by the PostGISFeatureStore.
PostGISFeatureStore| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.deegree.feature.persistence.FeatureStoreTransaction |
|---|
FeatureStoreTransaction.IDGenMode |
| Constructor Summary | |
|---|---|
PostGISFeatureStoreTransaction(PostGISFeatureStore store,
Connection conn)
Creates a new PostGISFeatureStoreTransaction instance. |
|
| 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. |
Connection |
getConnection()
Returns the underlying JDBC connection. |
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 |
prepareCommit()
|
void |
prepareRollbackAndRelease()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
PostGISFeatureStoreTransaction(PostGISFeatureStore store,
Connection conn)
PostGISFeatureStoreTransaction instance.
NOTE: This method is only supposed to be invoked by the PostGISFeatureStore.
store - invoking feature store instance, never nullconn - JDBC connection associated with the transaction, never null and has
autocommit set to false| Method Detail |
|---|
public void commit()
throws FeatureStoreException
FeatureStoreTransactionFeatureStore.
commit in interface FeatureStoreTransactionFeatureStoreException - if the committing fails
public void prepareCommit()
throws FeatureStoreException
FeatureStoreExceptionpublic FeatureStore getStore()
FeatureStoreTransactionFeatureStore instance.
getStore in interface FeatureStoreTransactionFeatureStore instancepublic Connection getConnection()
null
public int performDelete(QName ftName,
OperatorFilter filter,
Lock lock)
throws FeatureStoreException
FeatureStoreTransactionFeatureStore that are matched by the given filter and type.
performDelete in interface FeatureStoreTransactionftName - 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 fails
public int performDelete(IdFilter filter,
Lock lock)
throws FeatureStoreException
FeatureStoreTransactionFeatureStore that are matched by the given filter.
performDelete in interface FeatureStoreTransactionfilter - filter that determines the features to be deletedlock - optional lock object, may be null
FeatureStoreException - if the deletion fails
public List<String> performInsert(FeatureCollection fc,
FeatureStoreTransaction.IDGenMode mode)
throws FeatureStoreException
FeatureStoreTransactionFeatureCollection into the FeatureStore.
performInsert in interface FeatureStoreTransactionfc - 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 fails
public int performUpdate(QName ftName,
List<Property<?>> replacementProps,
Filter filter,
Lock lock)
throws FeatureStoreException
FeatureStoreTransactionFeatureStore.
performUpdate in interface FeatureStoreTransactionftName - 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 fails
public void rollback()
throws FeatureStoreException
FeatureStoreTransactionFeatureStore.
rollback in interface FeatureStoreTransactionFeatureStoreException - if the rollback fails
public void prepareRollbackAndRelease()
throws FeatureStoreException
FeatureStoreException
|
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 | |||||||||