org.deegree.sqldialect.filter.expression
Interface SQLExpression

All Known Implementing Classes:
SQLArgument, SQLColumn, SQLOperation

public interface SQLExpression

Marks (a node of) an SQL expression with type information.

Version:
$Revision: 30977 $, $Date: 2011-05-31 11:30:55 +0200 (Di, 31. Mai 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Method Summary
 void cast(SQLExpression expr)
          Propagates type information to this expression (=performs a type cast).
 List<SQLArgument> getArguments()
          Returns the SQLArgument instances that occur in the expression, in same order as in the SQL snippet.
 ParticleConverter<?> getConverter()
          Returns the attached particle converter for this expression.
 ICRS getCRS()
          Returns the CRS of the expression (only for spatial ones).
 PrimitiveType getPrimitiveType()
          Returns the primitive type of this expression.
 StringBuilder getSQL()
          Returns the corresponding SQL snippet, with question marks for every SQLArgument argument (as required for JDBC PreparedStatements).
 String getSRID()
          Returns the databases' SRID of the expression (only for spatial ones).
 boolean isMultiValued()
          Returns whether the expression has multiple values (currently this can only be a string column that stores multiple values in concatenated form).
 boolean isSpatial()
          Returns whether the expression denotes a spatial value.
 

Method Detail

getPrimitiveType

PrimitiveType getPrimitiveType()
Returns the primitive type of this expression.

Returns:
the primitive type, can be null (no type information / spatial)

isSpatial

boolean isSpatial()
Returns whether the expression denotes a spatial value.

Returns:
true, if the expression is spatial, false otherwise

isMultiValued

boolean isMultiValued()
Returns whether the expression has multiple values (currently this can only be a string column that stores multiple values in concatenated form).

Returns:
true, if the expresion is multi-valued, false otherwise

getCRS

ICRS getCRS()
Returns the CRS of the expression (only for spatial ones).

Returns:
the CRS, can be null (unknown or not a spatial expression)

getSRID

String getSRID()
Returns the databases' SRID of the expression (only for spatial ones).

Returns:
the SRID, can be null (unknown or not a spatial expression)

getSQL

StringBuilder getSQL()
Returns the corresponding SQL snippet, with question marks for every SQLArgument argument (as required for JDBC PreparedStatements).

Returns:
the corresponding SQL snippet, never null
See Also:
getArguments()

getArguments

List<SQLArgument> getArguments()
Returns the SQLArgument instances that occur in the expression, in same order as in the SQL snippet.

Returns:
the SQL literals, never null
See Also:
getSQL()

cast

void cast(SQLExpression expr)
Propagates type information to this expression (=performs a type cast).

Parameters:
expr - type information to be applied, must not be null
Throws:
IllegalArgumentException - if the cast cannot be performed

getConverter

ParticleConverter<?> getConverter()
Returns the attached particle converter for this expression.

Returns:
particle converter, can be null


Copyright © 2011. All Rights Reserved.