public class CollectionParam extends Const implements Parameter
| Modifier and Type | Class and Description |
|---|---|
static class |
CollectionParam.ParamExpState
Expression state.
|
Const.ConstExpStateFALSE, 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| Constructor and Description |
|---|
CollectionParam(Object key,
Class type)
Constructor.
|
| 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.
|
CollectionParam |
clone() |
int |
getIndex() |
Object |
getParameterKey()
Returns the key of the parameter.
|
Object |
getSQLValue(Select sel,
ExpContext ctx,
ExpState state)
Return the SQL value of this constant.
|
Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
Object |
getValue(ExpContext ctx,
ExpState state)
Return the value of this constant.
|
Object |
getValue(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(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
void |
setIndex(int idx)
Set the index of this parameter.
|
appendIsEmpty, appendIsNotEmpty, appendIsNotNull, appendIsNull, appendSize, getMetaData, groupBy, isSQLValueNull, length, load, orderBy, select, selectColumns, setMetaDataacceptVisit, appendIndex, appendType, getAlias, getId, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, toDataStoreValueequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaDatapublic CollectionParam clone()
public Object getParameterKey()
ParametergetParameterKey in interface Parameterpublic Class getType()
ValueObject if
the type is unknown.public void setImplicitType(Class type)
ValueObject from Value.getType().setImplicitType in interface Valuepublic int getIndex()
public void setIndex(int idx)
Parameterpublic Object getValue(Object[] params)
Constantpublic Object getValue(ExpContext ctx, ExpState state)
Constpublic Object getSQLValue(Select sel, ExpContext ctx, ExpState state)
ConstgetSQLValue in class Constpublic ExpState initialize(Select sel, ExpContext ctx, int flags)
Valinitialize in interface Valinitialize in class Constpublic void calculateValue(Select sel, ExpContext ctx, ExpState state, Val other, ExpState otherState)
Vallength or any append methods.calculateValue in interface ValcalculateValue in class Constother - the value being compared to, or null if not a comparisonCopyright © 2006–2013 Apache Software Foundation. All rights reserved.