| java.lang.Object org.deegree.io.datastore.sql.AbstractRequestHandler
All known Subclasses: org.deegree.io.datastore.sql.transaction.SQLTransaction, org.deegree.io.datastore.sql.transaction.UpdateHandler, org.deegree.io.datastore.sql.FeatureFetcher, org.deegree.io.datastore.sql.transaction.insert.InsertHandler, org.deegree.io.datastore.sql.LockHandler, org.deegree.io.datastore.sql.transaction.delete.DeleteHandler,
AbstractRequestHandler | public class AbstractRequestHandler (Code) | | This abstract class implements some common SQL functionality needed by request handlers for SQL based datastores.
See Also: QueryHandler author: Markus Schneider author: last edited by: $Author: aschmitz $ version: $Revision: 10299 $, $Date: 2008-02-26 00:42:07 -0800 (Tue, 26 Feb 2008) $ |
Method Summary | |
public void | appendColumnsList(StatementBuffer query, String[] columns) Appends the specified columns as a comma-separated list to the given query. | protected void | appendFeatureIdColumns(MappedFeatureType featureType, String tableAlias, StatementBuffer query) Appends the alias qualified columns that make up the feature id to the given query. | protected void | appendFeatureIdConstraint(StatementBuffer query, FeatureId fid) | protected void | appendFeatureIdConstraint(StatementBuffer query, FeatureId fid, String tableAlias) | protected void | appendJoinCondition(TableRelation tableRelation, String fromAlias, String toAlias, StatementBuffer query) | protected void | appendJoins(TableRelation[] tableRelation, String fromAlias, String[] toAliases, StatementBuffer query) | public void | appendQualifiedColumn(StatementBuffer query, String tableAlias, String column) Appends the specified column to the given query. | public void | appendQualifiedColumnsList(StatementBuffer query, String tableAlias, String[] columns) Appends the specified columns as alias-qualified, comma-separated list to the given query. | public List<FeatureId> | determineAffectedAndModifiableFIDs(MappedFeatureType ft, Filter filter, String lockId) Determines the feature ids that are matched by the given filter and that are either not locked or locked by the
specified lockId. | public List<FeatureId> | determineAffectedFIDs(MappedFeatureType ft, Filter filter) Determines the feature ids that are matched by the given filter. | public Map<MappedFeaturePropertyType, List<FeatureId>> | determineSubFeatures(FeatureId fid) Determines all complex properties and contained subfeature ids for a certain feature. | public Set<FeatureId> | determineSuperFeatures(FeatureId fid) Determines all super features (as
FeatureId instances) for a certain feature. | protected FeatureId | extractFeatureId(ResultSet rs, MappedFeatureType ft) Extracts the FeatureId in the current row of the given
ResultSet . | protected List<FeatureId> | extractFeatureIds(ResultSet rs, MappedFeatureType ft) Extracts the feature ids in the given
ResultSet as a List of FeatureIds. |
FT_COLUMN | final protected static String FT_COLUMN(Code) | | Column used for disambiguation of feature properties that contain features that have more than one concrete type.
|
FT_PREFIX | final protected static String FT_PREFIX(Code) | | Column prefix used for disambiguation of feature properties that contain features that have more than one
concrete type.
|
AbstractRequestHandler | public AbstractRequestHandler(AbstractSQLDatastore ds, TableAliasGenerator aliasGenerator, Connection conn)(Code) | | Creates a new instance of AbstractRequestHandler from the given parameters.
Parameters: ds - Parameters: aliasGenerator - Parameters: conn - |
appendColumnsList | public void appendColumnsList(StatementBuffer query, String[] columns)(Code) | | Appends the specified columns as a comma-separated list to the given query.
Parameters: query - StatementBuffer that the list is appended to Parameters: columns - array of column names |
appendFeatureIdColumns | protected void appendFeatureIdColumns(MappedFeatureType featureType, String tableAlias, StatementBuffer query)(Code) | | Appends the alias qualified columns that make up the feature id to the given query.
Parameters: featureType - Parameters: tableAlias - Parameters: query - |
appendQualifiedColumn | public void appendQualifiedColumn(StatementBuffer query, String tableAlias, String column)(Code) | | Appends the specified column to the given query.
Parameters: query - StatementBuffer that the list is appended to Parameters: tableAlias - alias to use as qualifier (alias.field) Parameters: column - column name |
appendQualifiedColumnsList | public void appendQualifiedColumnsList(StatementBuffer query, String tableAlias, String[] columns)(Code) | | Appends the specified columns as alias-qualified, comma-separated list to the given query.
Parameters: query - StatementBuffer that the list is appended to Parameters: tableAlias - alias to use as qualifier (alias.field) Parameters: columns - array of column names |
determineAffectedAndModifiableFIDs | public List<FeatureId> determineAffectedAndModifiableFIDs(MappedFeatureType ft, Filter filter, String lockId) throws DatastoreException(Code) | | Determines the feature ids that are matched by the given filter and that are either not locked or locked by the
specified lockId.
Parameters: ft - non-abstract feature type Parameters: filter - constraints the feature instances Parameters: lockId - optional id of associated lock (may be null) the feature ids that are matched by the given filter throws: DatastoreException - |
|
|