Modifier and Type | Field and Description |
---|---|
(package private) Discriminator |
_disc |
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
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.
|
Discriminator |
getDiscriminator() |
protected java.lang.String |
getOperator()
Return the name of this operator.
|
Path |
getPath() |
protected java.lang.Class |
getType(java.lang.Class c)
Return the type of this value based on the argument type.
|
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value.
|
java.lang.Object |
load(ExpContext ctx,
ExpState state,
Result res)
Load the data for this value.
|
void |
select(Select sel,
ExpContext ctx,
ExpState state,
boolean pks)
Select the data for this value.
|
acceptVisit, getMetaData, getNoParen, getType, getValue, groupBy, initializeValue, length, orderBy, selectColumns, setImplicitType, setMetaData
appendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, getAlias, getId, getName, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValue
Discriminator _disc
public Type(Val val)
public ExpState initialize(Select sel, ExpContext ctx, int flags)
Val
initialize
in interface Val
initialize
in class UnaryOp
public java.lang.Object load(ExpContext ctx, ExpState state, Result res) throws java.sql.SQLException
Val
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 UnaryOp
other
- the value being compared to, or null if not a comparisonpublic void select(Select sel, ExpContext ctx, ExpState state, boolean pks)
Val
public void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
Val
index
th SQL element to the given buffer.protected java.lang.Class getType(java.lang.Class c)
UnaryOp
protected java.lang.String getOperator()
UnaryOp
getOperator
in class UnaryOp
public Path getPath()
getPath
in interface Value
getPath
in class AbstractVal
public Discriminator getDiscriminator()
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.