class Type extends UnaryOp
| Modifier and Type | Field and Description |
|---|---|
(package private) Discriminator |
_disc |
FALSE, TRUEABS_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
indexth 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 String |
getOperator()
Return the name of this operator.
|
Path |
getPath() |
protected Class |
getType(Class c)
Return the type of this value based on the argument type.
|
ExpState |
initialize(Select sel,
ExpContext ctx,
int flags)
Initialize the value.
|
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, setMetaDataappendIndex, appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, appendType, getAlias, getId, getName, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValueDiscriminator _disc
public Type(Val val)
public ExpState initialize(Select sel, ExpContext ctx, int flags)
Valinitialize in interface Valinitialize in class UnaryOppublic Object load(ExpContext ctx, ExpState state, Result res) throws SQLException
Valload in interface Valload in class UnaryOpSQLExceptionpublic void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState)
Vallength or any append methods.calculateValue in interface ValcalculateValue in class UnaryOpother - the value being compared to, or null if not a comparisonpublic void select(Select sel, ExpContext ctx, ExpState state, boolean pks)
Valpublic void appendTo(Select sel, ExpContext ctx, ExpState state, SQLBuffer sql, int index)
Valindexth SQL element to the given buffer.protected Class getType(Class c)
UnaryOpprotected String getOperator()
UnaryOpgetOperator in class UnaryOppublic Path getPath()
getPath in interface ValuegetPath in class AbstractValpublic Discriminator getDiscriminator()
Copyright © 2006–2013 Apache Software Foundation. All rights reserved.