org.deegree.feature.persistence.shape
Class H2WhereBuilder

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

public class H2WhereBuilder
extends AbstractWhereBuilder

Version:
$Revision: 31658 $, $Date: 2011-08-25 20:09:40 +0200 (Thu, 25 Aug 2011) $
Author:
Andreas Schmitz, last edited by: $Author: mschneider $

Field Summary
 
Fields inherited from class org.deegree.sqldialect.filter.AbstractWhereBuilder
aliasManager, dialect, filter, mapper, orderByClause, postFilter, postSortCrit, propNameMappingList, sortCrit, whereClause
 
Constructor Summary
H2WhereBuilder(SQLDialect dialect, OperatorFilter filter, SortProperty[] sort)
           
 
Method Summary
protected  SQLExpression toProtoSQL(Literal<?> literal)
          Translates the given Literal into an SQLExpression.
protected  SQLOperation toProtoSQL(SpatialOperator op)
          Translates the given SpatialOperator into an SQLOperation.
protected  SQLExpression toProtoSQL(ValueReference expr)
          Translates the given ValueReference into an SQLExpression.
 
Methods inherited from class org.deegree.sqldialect.filter.AbstractWhereBuilder
assertNotMultiValued, build, getAliasManager, getMappedPropertyNames, getOrderBy, getPostFilter, getPostSortCriteria, getWhere, toProtoSQL, toProtoSQL, 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(SQLDialect dialect,
                      OperatorFilter filter,
                      SortProperty[] sort)
               throws FilterEvaluationException
Parameters:
dialect - SQL dialect, can be null (TODO refactor code, so not null is always used)
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 ValueReferences

toProtoSQL

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

Overrides:
toProtoSQL in class AbstractWhereBuilder
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 ValueReferences

toProtoSQL

protected SQLExpression toProtoSQL(Literal<?> literal)
                            throws UnmappableException,
                                   FilterEvaluationException
Description copied from class: AbstractWhereBuilder
Translates the given Literal into an SQLExpression.

The returned literal does not have any type information. Literal types are inferred in AbstractWhereBuilder.toProtoSQL(ComparisonOperator).

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 ValueReferences


Copyright © 2011. All Rights Reserved.