|
deegree 2.1 (2007/11/08 09:57 build-328-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.sde.SDEWhereBuilder
public class SDEWhereBuilder
WhereBuilder implementation for ArcSDE.
| Field Summary | |
|---|---|
protected Filter |
filter
|
protected List<PropertyPath> |
filterPropertyPaths
|
protected static ILogger |
LOG
|
protected QueryTableTree |
queryTableTree
|
protected MappedFeatureType |
rootFeatureType
|
| Constructor Summary | |
|---|---|
SDEWhereBuilder(MappedFeatureType[] rootFts,
String[] aliases,
Filter filter,
TableAliasGenerator aliasGenerator)
Creates a new instance of SDEWhereBuilder for the given parameters. |
|
| Method Summary | |
|---|---|
protected void |
appendArithmeticExpressionAsSQL(StringBuffer query,
ArithmeticExpression expression,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendComparisonOperationAsSQL(StringBuffer query,
ComparisonOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendComplexFilterAsSQL(StringBuffer query,
ComplexFilter filter)
Appends an SQL fragment for the given object. |
protected void |
appendExpressionAsSQL(StringBuffer query,
Expression expression,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendFeatureFilterAsSQL(StringBuffer query,
FeatureFilter filter)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendFunctionAsSQL(StringBuffer query,
Function function,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendLiteralAsSQL(StringBuffer query,
Literal literal,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendLogicalOperationAsSQL(StringBuffer query,
LogicalOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendOperationAsSQL(StringBuffer query,
Operation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsBetweenOperationAsSQL(StringBuffer query,
PropertyIsBetweenOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsCOMPOperationAsSQL(StringBuffer query,
PropertyIsCOMPOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsLikeOperationAsSQL(StringBuffer query,
PropertyIsLikeOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsNullOperationAsSQL(StringBuffer query,
PropertyIsNullOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyNameAsSQL(StringBuffer query,
PropertyName propertyName)
Appends an SQL fragment for the given object to the given sql statement. |
void |
appendWhereCondition(StringBuffer whereCondition)
Appends the SQL condition from the Filter to the given sql statement. |
protected void |
buildFilterPropertyNameMap()
|
protected com.esri.sde.sdk.client.SeFilter[] |
buildSpatialFilter(ComplexFilter filter,
List layers)
Generates an SQL-fragment for the given object. |
Filter |
getFilter()
|
protected int |
getInternalSRS(SpatialOperation operation)
Returns the internal (database specific) SRS code used in the geometry field of the given SpatialOperation. |
protected MappingField |
getPropertyNameMapping(PropertyName propertyName)
Appends an SQL fragment for the given object to the given sql statement. |
protected int |
getPropertyNameSQLType(PropertyName propertyName)
|
String |
getRootTableAlias()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final ILogger LOG
protected MappedFeatureType rootFeatureType
protected Filter filter
protected QueryTableTree queryTableTree
protected List<PropertyPath> filterPropertyPaths
| Constructor Detail |
|---|
public SDEWhereBuilder(MappedFeatureType[] rootFts,
String[] aliases,
Filter filter,
TableAliasGenerator aliasGenerator)
throws DatastoreException
SDEWhereBuilder for the given parameters.
rootFts - selected feature types, more than one type means that the types are joinedaliases - aliases for the feature types, may be null (must have same length as rootFts
otherwise)filter - aliasGenerator -
DatastoreException| Method Detail |
|---|
public String getRootTableAlias()
public Filter getFilter()
protected int getInternalSRS(SpatialOperation operation)
SpatialOperation.
operation - SpatialOperation for which the internal SRS is needed
protected int getPropertyNameSQLType(PropertyName propertyName)
propertyName -
protected void buildFilterPropertyNameMap()
throws PropertyPathResolvingException
PropertyPathResolvingExceptionpublic final void appendWhereCondition(StringBuffer whereCondition)
Filter to the given sql statement.
whereCondition -
protected void appendComplexFilterAsSQL(StringBuffer query,
ComplexFilter filter)
query - filter -
protected void appendOperationAsSQL(StringBuffer query,
Operation operation)
query - operation -
protected void appendComparisonOperationAsSQL(StringBuffer query,
ComparisonOperation operation)
query - operation -
protected void appendPropertyIsCOMPOperationAsSQL(StringBuffer query,
PropertyIsCOMPOperation operation)
query - operation -
protected void appendPropertyIsLikeOperationAsSQL(StringBuffer query,
PropertyIsLikeOperation operation)
(escapeMode)
query - operation -
protected void appendPropertyIsNullOperationAsSQL(StringBuffer query,
PropertyIsNullOperation operation)
query - operation -
protected void appendPropertyIsBetweenOperationAsSQL(StringBuffer query,
PropertyIsBetweenOperation operation)
query - operation -
protected void appendExpressionAsSQL(StringBuffer query,
Expression expression,
int targetSqlType)
query - expression - targetSqlType - sql type code to be used for literals at the bottom of the expression tree
protected void appendLiteralAsSQL(StringBuffer query,
Literal literal,
int targetSqlType)
query - literal - targetSqlType - protected MappingField getPropertyNameMapping(PropertyName propertyName)
propertyName -
protected void appendPropertyNameAsSQL(StringBuffer query,
PropertyName propertyName)
query - propertyName -
protected void appendArithmeticExpressionAsSQL(StringBuffer query,
ArithmeticExpression expression,
int targetSqlType)
query - expression - targetSqlType -
protected void appendFunctionAsSQL(StringBuffer query,
Function function,
int targetSqlType)
query - function - targetSqlType -
protected void appendLogicalOperationAsSQL(StringBuffer query,
LogicalOperation operation)
query - operation -
protected void appendFeatureFilterAsSQL(StringBuffer query,
FeatureFilter filter)
query - filter -
protected com.esri.sde.sdk.client.SeFilter[] buildSpatialFilter(ComplexFilter filter,
List layers)
throws DatastoreException
filter - layers -
DatastoreException
|
deegree 2.1 (2007/11/08 09:57 build-328-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://deegree.sourceforge.net