|
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.Objectorg.deegree.io.datastore.sde.SDEWhereBuilder
public class SDEWhereBuilder
WhereBuilder implementation for ArcSDE.
| Field Summary | |
|---|---|
protected Filter |
filter
The filter to apply |
protected java.util.List<PropertyPath> |
filterPropertyPaths
The filter property paths |
protected QueryTableTree |
queryTableTree
The query |
protected MappedFeatureType |
rootFeatureType
the root feature type |
| Constructor Summary | |
|---|---|
SDEWhereBuilder(MappedFeatureType[] rootFts,
java.lang.String[] aliases,
Filter filter,
TableAliasGenerator aliasGenerator)
Creates a new instance of SDEWhereBuilder for the given parameters. |
|
| Method Summary | |
|---|---|
protected void |
appendArithmeticExpressionAsSQL(java.lang.StringBuffer query,
ArithmeticExpression expression,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendComparisonOperationAsSQL(java.lang.StringBuffer query,
ComparisonOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendComplexFilterAsSQL(java.lang.StringBuffer query,
ComplexFilter filter)
Appends an SQL fragment for the given object. |
protected void |
appendExpressionAsSQL(java.lang.StringBuffer query,
Expression expression,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendFeatureFilterAsSQL(java.lang.StringBuffer query,
FeatureFilter filter)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendFunctionAsSQL(java.lang.StringBuffer query,
Function function,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendLiteralAsSQL(java.lang.StringBuffer query,
Literal literal,
int targetSqlType)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendLogicalOperationAsSQL(java.lang.StringBuffer query,
LogicalOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendOperationAsSQL(java.lang.StringBuffer query,
Operation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsBetweenOperationAsSQL(java.lang.StringBuffer query,
PropertyIsBetweenOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsCOMPOperationAsSQL(java.lang.StringBuffer query,
PropertyIsCOMPOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsLikeOperationAsSQL(java.lang.StringBuffer query,
PropertyIsLikeOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyIsNullOperationAsSQL(java.lang.StringBuffer query,
PropertyIsNullOperation operation)
Appends an SQL fragment for the given object to the given sql statement. |
protected void |
appendPropertyNameAsSQL(java.lang.StringBuffer query,
PropertyName propertyName)
Appends an SQL fragment for the given object to the given sql statement. |
void |
appendWhereCondition(java.lang.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,
java.util.List<com.esri.sde.sdk.client.SeLayer> 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)
|
java.lang.String |
getRootTableAlias()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MappedFeatureType rootFeatureType
protected Filter filter
protected QueryTableTree queryTableTree
protected java.util.List<PropertyPath> filterPropertyPaths
| Constructor Detail |
|---|
public SDEWhereBuilder(MappedFeatureType[] rootFts,
java.lang.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 java.lang.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(java.lang.StringBuffer whereCondition)
Filter to the given sql statement.
whereCondition -
protected void appendComplexFilterAsSQL(java.lang.StringBuffer query,
ComplexFilter filter)
query - filter -
protected void appendOperationAsSQL(java.lang.StringBuffer query,
Operation operation)
query - operation -
protected void appendComparisonOperationAsSQL(java.lang.StringBuffer query,
ComparisonOperation operation)
query - operation -
protected void appendPropertyIsCOMPOperationAsSQL(java.lang.StringBuffer query,
PropertyIsCOMPOperation operation)
query - operation -
protected void appendPropertyIsLikeOperationAsSQL(java.lang.StringBuffer query,
PropertyIsLikeOperation operation)
(escapeMode)
query - operation -
protected void appendPropertyIsNullOperationAsSQL(java.lang.StringBuffer query,
PropertyIsNullOperation operation)
query - operation -
protected void appendPropertyIsBetweenOperationAsSQL(java.lang.StringBuffer query,
PropertyIsBetweenOperation operation)
query - operation -
protected void appendExpressionAsSQL(java.lang.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(java.lang.StringBuffer query,
Literal literal,
int targetSqlType)
query - literal - targetSqlType - protected MappingField getPropertyNameMapping(PropertyName propertyName)
propertyName -
protected void appendPropertyNameAsSQL(java.lang.StringBuffer query,
PropertyName propertyName)
query - propertyName -
protected void appendArithmeticExpressionAsSQL(java.lang.StringBuffer query,
ArithmeticExpression expression,
int targetSqlType)
query - expression - targetSqlType -
protected void appendFunctionAsSQL(java.lang.StringBuffer query,
Function function,
int targetSqlType)
query - function - targetSqlType -
protected void appendLogicalOperationAsSQL(java.lang.StringBuffer query,
LogicalOperation operation)
query - operation -
protected void appendFeatureFilterAsSQL(java.lang.StringBuffer query,
FeatureFilter filter)
query - filter -
protected com.esri.sde.sdk.client.SeFilter[] buildSpatialFilter(ComplexFilter filter,
java.util.List<com.esri.sde.sdk.client.SeLayer> layers)
throws DatastoreException
filter - layers -
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