|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.io.datastore.sde.AbstractSDERequestHandler org.deegree.io.datastore.sde.SDETransaction
public class SDETransaction
Handles Transaction
requests to SQL based datastores.
Field Summary |
---|
Fields inherited from class org.deegree.io.datastore.sde.AbstractSDERequestHandler |
---|
aliasGenerator, conn, datastore, FT_COLUMN, FT_PREFIX |
Constructor Summary | |
---|---|
SDETransaction(SDEDatastore datastore,
TableAliasGenerator aliasGenerator,
SDEConnection conn)
Creates a new instance of SQLTransaction from the given parameters. |
Method Summary | |
---|---|
void |
begin()
Starts a new transaction. |
void |
commit()
Makes the changes persistent that have been performed in this transaction. |
int |
performDelete(MappedFeatureType mappedFeatureType,
Filter filter,
java.lang.String lockId)
Deletes the features from the datastore that are matched by the given filter and type. |
java.util.List<FeatureId> |
performInsert(java.util.List<Feature> features)
Inserts the given feature instances into the datastore. |
int |
performNative(Native operation)
Performs a 'native' operation against the datastore. |
int |
performReplace(MappedFeatureType mappedFeatureType,
Feature replacementFeature,
Filter filter,
java.lang.String lockId)
Performs a replace operation against the datastore. |
int |
performUpdate(MappedFeatureType mappedFeatureType,
Feature replacementFeature,
Filter filter,
java.lang.String lockId)
Performs an update operation against the datastore. |
int |
performUpdate(MappedFeatureType mappedFeatureType,
java.util.Map<PropertyPath,FeatureProperty> replacementProps,
Filter filter,
java.lang.String lockId)
Performs an update operation against the datastore. |
void |
release()
Returns the transaction instance so other clients may acquire a transaction (and underlying resources, such as JDBCConnections can be freed). |
void |
rollback()
Aborts the changes that have been performed in this transaction. |
Methods inherited from class org.deegree.io.datastore.sde.AbstractSDERequestHandler |
---|
buildColumnsMap, buildInitialFIDSelect, buildMappingFieldMap, determineAffectedFIDs, extractFeatureIds, getAliasGenerator, getConnection, getDatastore, getFeatureIdColumns |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.deegree.io.datastore.DatastoreTransaction |
---|
getDatastore |
Constructor Detail |
---|
public SDETransaction(SDEDatastore datastore, TableAliasGenerator aliasGenerator, SDEConnection conn)
SQLTransaction
from the given parameters.
datastore
- aliasGenerator
- conn
- Method Detail |
---|
public void begin() throws DatastoreException
DatastoreException
public void commit() throws DatastoreException
commit
in interface DatastoreTransaction
DatastoreException
public void rollback() throws DatastoreException
rollback
in interface DatastoreTransaction
DatastoreException
public void release() throws DatastoreException
release
in interface DatastoreTransaction
DatastoreException
public java.util.List<FeatureId> performInsert(java.util.List<Feature> features) throws DatastoreException
performInsert
in interface DatastoreTransaction
features
-
DatastoreException
FeatureIdAssigner
public int performUpdate(MappedFeatureType mappedFeatureType, java.util.Map<PropertyPath,FeatureProperty> replacementProps, Filter filter, java.lang.String lockId) throws DatastoreException
performUpdate
in interface DatastoreTransaction
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
public int performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, java.lang.String lockId) throws DatastoreException
The filter is expected to match exactly one feature which will be replaced by the specified replacement feature.
performUpdate
in interface DatastoreTransaction
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
public int performReplace(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, java.lang.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
public int performDelete(MappedFeatureType mappedFeatureType, Filter filter, java.lang.String lockId) throws DatastoreException
performDelete
in interface DatastoreTransaction
mappedFeatureType
- filter
- lockId
- optional id of associated lock (may be null)
DatastoreException
public int performNative(Native operation) throws DatastoreException
performNative
in interface DatastoreTransaction
operation
-
DatastoreException
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org