org.deegree.feature.persistence.shape
Class H2WhereBuilder

java.lang.Object
  extended by org.deegree.filter.sql.AbstractWhereBuilder
      extended by org.deegree.feature.persistence.shape.H2WhereBuilder

public class H2WhereBuilder
extends AbstractWhereBuilder

Version:
$Revision: 25965 $, $Date: 2010-08-18 16:56:45 +0200 (Mi, 18. Aug 2010) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Field Summary
 
Fields inherited from class org.deegree.filter.sql.AbstractWhereBuilder
aliasManager, propNameMappingList
 
Constructor Summary
H2WhereBuilder(OperatorFilter filter, SortProperty[] sort)
           
 
Method Summary
protected  SQLExpression toProtoSQL(Literal<?> literal)
          Translates the given Literal into an SQLExpression.
protected  SQLExpression toProtoSQL(PropertyName expr)
          Translates the given PropertyName into an SQLExpression.
protected  SQLOperation toProtoSQL(SpatialOperator op)
          Translates the given SpatialOperator into an SQLOperation.
 
Methods inherited from class org.deegree.filter.sql.AbstractWhereBuilder
build, getAliasManager, getMappedPropertyNames, getOrderBy, getPostFilter, getPostSortCriteria, getWhere, toProtoSQL, toProtoSQL, toProtoSQL, toProtoSQL, toProtoSQL, toProtoSQL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2WhereBuilder

public H2WhereBuilder(OperatorFilter filter,
                      SortProperty[] sort)
               throws FilterEvaluationException
Parameters:
filter -
sort -
Throws:
FilterEvaluationException
Method Detail

toProtoSQL

protected SQLOperation toProtoSQL(SpatialOperator op)
                           throws UnmappableException,
                                  FilterEvaluationException
Description copied from class: AbstractWhereBuilder
Translates the given SpatialOperator into an SQLOperation.

Specified by:
toProtoSQL in class AbstractWhereBuilder
Parameters:
op - spatial operator to be translated, must not be null
Returns:
corresponding SQL expression, never null
Throws:
UnmappableException - if translation is not possible (usually due to unmappable property names)
FilterEvaluationException - if the filter contains invalid PropertyNames

toProtoSQL

protected SQLExpression toProtoSQL(PropertyName expr)
                            throws UnmappableException,
                                   FilterEvaluationException
Description copied from class: AbstractWhereBuilder
Translates the given PropertyName into an SQLExpression.

Specified by:
toProtoSQL in class AbstractWhereBuilder
Parameters:
expr - expression to be translated, must not be null
Returns:
corresponding SQL expression, never null
Throws:
UnmappableException - if translation is not possible (usually due to unmappable property names)
FilterEvaluationException - if the filter contains invalid PropertyNames

toProtoSQL

protected SQLExpression toProtoSQL(Literal<?> literal)
                            throws UnmappableException,
                                   FilterEvaluationException
Description copied from class: AbstractWhereBuilder
Translates the given Literal into an SQLExpression.
TODO be aware: if the literal can be parsed as a date from DateUtils the literals sqlType will be set to TIMESTAMP.

Overrides:
toProtoSQL in class AbstractWhereBuilder
Parameters:
literal - literal to be translated, must not be null
Returns:
corresponding SQL expression, never null
Throws:
UnmappableException - if translation is not possible (usually due to unmappable property names)
FilterEvaluationException - if the filter contains invalid PropertyNames


Copyright © 2011. All Rights Reserved.