|
||||||||||
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 |
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 . |
java.sql.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(javax.xml.namespace.QName ftName,
OperatorFilter filter,
Lock lock)
Deletes the features from the FeatureStore that are matched by the given filter and type. |
java.util.List<java.lang.String> |
performInsert(FeatureCollection fc,
FeatureStoreTransaction.IDGenMode mode)
Inserts the given FeaureCollection into the FeatureStore (including subfeatures). |
int |
performUpdate(javax.xml.namespace.QName ftName,
java.util.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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void commit() throws FeatureStoreException
FeatureStoreTransaction
FeatureStore
.
commit
in interface FeatureStoreTransaction
FeatureStoreException
- if the committing failspublic FeatureStore getStore()
FeatureStoreTransaction
FeatureStore
instance.
getStore
in interface FeatureStoreTransaction
FeatureStore
instance, never null
public java.sql.Connection getConnection()
null
public int performDelete(javax.xml.namespace.QName ftName, OperatorFilter filter, Lock lock) throws FeatureStoreException
FeatureStoreTransaction
FeatureStore
that are matched by the given filter and type.
performDelete
in interface FeatureStoreTransaction
ftName
- feature type of the features to be deleted, must not be null
filter
- filter that determines the features to be deleted, must not be null
lock
- optional lock object, may be null
FeatureStoreException
- if the deletion failspublic int performDelete(IdFilter filter, Lock lock) throws FeatureStoreException
FeatureStoreTransaction
FeatureStore
that are matched by the given filter.
performDelete
in interface FeatureStoreTransaction
filter
- filter that determines the features to be deleted, must not be null
lock
- optional lock object, may be null
FeatureStoreException
- if the deletion fails (*not* if a specified id does not exist)public java.util.List<java.lang.String> performInsert(FeatureCollection fc, FeatureStoreTransaction.IDGenMode mode) throws FeatureStoreException
FeatureStoreTransaction
FeaureCollection
into the FeatureStore
(including subfeatures).
performInsert
in interface FeatureStoreTransaction
fc
- features to be inserted, must not be null
mode
- mode for deriving the ids of the inserted objects, must not be null
FeatureStoreException
- if the insertion failspublic int performUpdate(javax.xml.namespace.QName ftName, java.util.List<Property> replacementProps, Filter filter, Lock lock) throws FeatureStoreException
FeatureStoreTransaction
FeatureStore
.
performUpdate
in interface FeatureStoreTransaction
ftName
- feature type of the features to be updated, must not be null
replacementProps
- properties and their replacement values, must not be null
filter
- selects the feature instances that are to be updated, must not be null
lock
- optional lock object, may be null
FeatureStoreException
- if the update failspublic void rollback() throws FeatureStoreException
FeatureStoreTransaction
FeatureStore
.
rollback
in interface FeatureStoreTransaction
FeatureStoreException
- if the rollback fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |