|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.sqldialect.filter.expression.SQLArgument
public class SQLArgument
SQLExpression
that represents a constant argument value, e.g. a string, a number or a geometry.
Constructor Summary | |
---|---|
SQLArgument(Geometry value,
GeometryParticleConverter converter)
Creates a new spatial valued SQLArgument . |
|
SQLArgument(PrimitiveValue value,
PrimitiveParticleConverter converter)
Creates a new primitive valued SQLArgument . |
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<? extends TypedObjectNode> |
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). |
TypedObjectNode |
getValue()
|
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. |
void |
setArgument(PreparedStatement stmt,
int paramIndex)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLArgument(PrimitiveValue value, PrimitiveParticleConverter converter)
SQLArgument
.
value
- value, can be null
converter
- converter, can be null
public SQLArgument(Geometry value, GeometryParticleConverter converter)
SQLArgument
.
value
- value, can be null
converter
- converter, can be null
Method Detail |
---|
public void setArgument(PreparedStatement stmt, int paramIndex) throws SQLException
SQLException
public boolean isSpatial()
SQLExpression
isSpatial
in interface SQLExpression
public boolean isMultiValued()
SQLExpression
isMultiValued
in interface SQLExpression
public String toString()
toString
in class Object
public List<SQLArgument> getArguments()
SQLExpression
SQLArgument
instances that occur in the expression, in same order as in the SQL snippet.
getArguments
in interface SQLExpression
null
SQLExpression.getSQL()
public StringBuilder getSQL()
SQLExpression
SQLArgument
argument (as required
for JDBC PreparedStatement
s).
getSQL
in interface SQLExpression
null
SQLExpression.getArguments()
public ICRS getCRS()
SQLExpression
getCRS
in interface SQLExpression
null
(unknown or not a spatial expression)public String getSRID()
SQLExpression
getSRID
in interface SQLExpression
null
(unknown or not a spatial expression)public PrimitiveType getPrimitiveType()
SQLExpression
getPrimitiveType
in interface SQLExpression
null
(no type information / spatial)public void cast(SQLExpression expr)
SQLExpression
cast
in interface SQLExpression
expr
- type information to be applied, must not be null
public ParticleConverter<? extends TypedObjectNode> getConverter()
SQLExpression
getConverter
in interface SQLExpression
null
public TypedObjectNode getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |