|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SQLExpression
Marks (a node of) an SQL expression with type information.
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 PreparedStatement s). |
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 |
---|
PrimitiveType getPrimitiveType()
null
(no type information / spatial)boolean isSpatial()
boolean isMultiValued()
ICRS getCRS()
null
(unknown or not a spatial expression)String getSRID()
null
(unknown or not a spatial expression)StringBuilder getSQL()
SQLArgument
argument (as required
for JDBC PreparedStatement
s).
null
getArguments()
List<SQLArgument> getArguments()
SQLArgument
instances that occur in the expression, in same order as in the SQL snippet.
null
getSQL()
void cast(SQLExpression expr)
expr
- type information to be applied, must not be null
IllegalArgumentException
- if the cast cannot be performedParticleConverter<?> getConverter()
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |