| java.lang.Object org.deegree.io.datastore.sql.AbstractRequestHandler org.deegree.io.datastore.sql.transaction.SQLTransaction
All known Subclasses: org.deegree.io.datastore.sql.generic.GenericSQLTransaction,
Method Summary | |
public void | commit() Makes the changes persistent that have been performed in this transaction. | public Connection | getConnection() Returns the underlying JDBC connection. | public AbstractSQLDatastore | getDatastore() Returns the underlying AbstractSQLDatastore . | public int | performDelete(MappedFeatureType mappedFeatureType, Filter filter, String lockId) Deletes the features from the datastore that are matched by the given filter and type. | public List<FeatureId> | performInsert(List<Feature> features) Inserts the given feature instances into the datastore. | public int | performNative(Native operation) Performs a 'native' operation against the datastore. | public int | performUpdate(MappedFeatureType mappedFeatureType, Map<PropertyPath, FeatureProperty> replacementProps, Filter filter, String lockId) Performs an update operation against the datastore. | public int | performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, String lockId) Performs an update operation against the datastore. | public void | release() Returns the transaction instance so other clients may acquire a transaction (and underlying resources, such as
JDBCConnections can be freed). | public void | rollback() Aborts the changes that have been performed in this transaction. |
getConnection | public Connection getConnection()(Code) | | Returns the underlying JDBC connection.
the underlying JDBC connection |
getDatastore | public AbstractSQLDatastore getDatastore()(Code) | | Returns the underlying AbstractSQLDatastore .
the underlying AbstractSQLDatastore |
performDelete | public int performDelete(MappedFeatureType mappedFeatureType, Filter filter, String lockId) throws DatastoreException(Code) | | Deletes the features from the datastore that are matched by the given filter and type.
Parameters: mappedFeatureType - Parameters: filter - Parameters: lockId - optional id of associated lock (may be null) number of deleted feature instances throws: DatastoreException - |
performUpdate | public int performUpdate(MappedFeatureType mappedFeatureType, Map<PropertyPath, FeatureProperty> replacementProps, Filter filter, String lockId) throws DatastoreException(Code) | | Performs an update operation against the datastore.
Parameters: mappedFeatureType - feature type that is to be updated Parameters: replacementProps - properties and their replacement values Parameters: filter - selects the feature instances that are to be updated Parameters: lockId - optional id of associated lock (may be null) number of updated feature instances throws: DatastoreException - |
performUpdate | public int performUpdate(MappedFeatureType mappedFeatureType, Feature replacementFeature, Filter filter, String lockId) throws DatastoreException(Code) | | Performs an update operation against the datastore.
The filter is expected to match exactly one feature which will be replaced by the specified replacement feature.
Parameters: mappedFeatureType - feature type that is to be updated Parameters: replacementFeature - feature instance that will replace the selected feature Parameters: filter - selects the single feature instances that is to be replaced Parameters: lockId - optional id of associated lock (may be null) number of updated feature instances (must be 0 or 1) throws: DatastoreException - |
release | public void release() throws DatastoreException(Code) | | Returns the transaction instance so other clients may acquire a transaction (and underlying resources, such as
JDBCConnections can be freed).
throws: DatastoreException - |
Methods inherited from org.deegree.io.datastore.sql.AbstractRequestHandler | public void appendColumnsList(StatementBuffer query, String[] columns)(Code)(Java Doc) protected void appendFeatureIdColumns(MappedFeatureType featureType, String tableAlias, StatementBuffer query)(Code)(Java Doc) protected void appendFeatureIdConstraint(StatementBuffer query, FeatureId fid)(Code)(Java Doc) protected void appendFeatureIdConstraint(StatementBuffer query, FeatureId fid, String tableAlias)(Code)(Java Doc) protected void appendJoinCondition(TableRelation tableRelation, String fromAlias, String toAlias, StatementBuffer query)(Code)(Java Doc) protected void appendJoins(TableRelation[] tableRelation, String fromAlias, String[] toAliases, StatementBuffer query)(Code)(Java Doc) public void appendQualifiedColumn(StatementBuffer query, String tableAlias, String column)(Code)(Java Doc) public void appendQualifiedColumnsList(StatementBuffer query, String tableAlias, String[] columns)(Code)(Java Doc) public List<FeatureId> determineAffectedAndModifiableFIDs(MappedFeatureType ft, Filter filter, String lockId) throws DatastoreException(Code)(Java Doc) public List<FeatureId> determineAffectedFIDs(MappedFeatureType ft, Filter filter) throws DatastoreException(Code)(Java Doc) public Map<MappedFeaturePropertyType, List<FeatureId>> determineSubFeatures(FeatureId fid) throws DatastoreException(Code)(Java Doc) public Set<FeatureId> determineSuperFeatures(FeatureId fid) throws DatastoreException(Code)(Java Doc) protected FeatureId extractFeatureId(ResultSet rs, MappedFeatureType ft) throws SQLException, DatastoreException(Code)(Java Doc) protected List<FeatureId> extractFeatureIds(ResultSet rs, MappedFeatureType ft) throws SQLException, DatastoreException(Code)(Java Doc)
|
|
|