org.deegree.feature.persistence.shape
Class H2WhereBuilder
java.lang.Object
org.deegree.sqldialect.filter.AbstractWhereBuilder
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 $
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 |
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
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 ValueReference
s
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 ValueReference
s
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 ValueReference
s
Copyright © 2011. All Rights Reserved.