Const.ConstExpState
FALSE, TRUE
ABS_VAL, ARGS_VAL, CMP_EQUAL, COALESCE_VAL, CONCAT_VAL, FORCE_OUTER, GENERALCASE_VAL, INDEXOF_VAL, JOIN_REL, LENGTH_VAL, LOCATE_VAL, LOWER_VAL, MATH_VAL, NULL_CMP, NULLIF_VAL, SIMPLECASE_VAL, SQRT_VAL, SUBSTRING_VAL, TRIM_VAL, UPPER_VAL, VAL, WHENCONDITION_VAL, WHENSCALAR_VAL
Constructor and Description |
---|
ConstGetObjectId(Const constant)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendTo(Select sel,
ExpContext ctx,
ExpState state,
SQLBuffer sql,
int index)
Append the
index th SQL element to the given buffer. |
void |
calculateValue(Select sel,
ExpContext ctx,
ExpState state,
Val other,
ExpState otherState)
Calculate and cache the SQL for this value.
|
java.lang.Object |
getSQLValue(Select sel,
ExpContext ctx,
ExpState state)
Return the SQL value of this constant.
|
java.lang.Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
java.lang.Object |
getValue(ExpContext ctx,
ExpState state)
Return the value of this constant.
|
java.lang.Object |
getValue(java.lang.Object[] params)
Return the value for this constant given the specified parameters.
|
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value.
|
void |
setImplicitType(java.lang.Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, getMetaData, groupBy, isSQLValueNull, length, load, orderBy, select, selectColumns, setMetaData
acceptVisit, appendIndex, appendType, getAlias, getId, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValue
public ConstGetObjectId(Const constant)
public java.lang.Class getType()
Value
Object
if
the type is unknown.public void setImplicitType(java.lang.Class type)
Value
Object
from Value.getType()
.public java.lang.Object getValue(java.lang.Object[] params)
Constant
public java.lang.Object getValue(ExpContext ctx, ExpState state)
Const
public ExpState initialize(Select sel, ExpContext ctx, int flags)
Val
initialize
in interface Val
initialize
in class Const
public java.lang.Object getSQLValue(Select sel, ExpContext ctx, ExpState state)
Const
getSQLValue
in class Const
public void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState)
Val
length
or any append
methods.calculateValue
in interface Val
calculateValue
in class Const
other
- the value being compared to, or null if not a comparisonpublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
Val
index
th SQL element to the given buffer.Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.