public final class Parameter extends Operation0 implements ParameterInterface
AUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
Parameter(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSet()
Check if the value is set.
|
int |
getCost()
Estimate the cost to process the expression.
|
int |
getIndex() |
Expression |
getNotIfPossible(SessionLocal session)
If it is possible, return the negated expression.
|
Value |
getParamValue()
Get the value of the parameter if set.
|
TypeInfo |
getType()
Returns the data type.
|
java.lang.StringBuilder |
getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
boolean |
isEverything(ExpressionVisitor visitor)
Check if this expression and all sub-expressions can fulfill a criteria.
|
boolean |
isValueSet()
Is the value of a parameter set.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
void |
setColumn(Column column) |
void |
setValue(Value v) |
void |
setValue(Value v,
boolean closeOld)
Set the value of the parameter.
|
mapColumns, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getSubexpression, getSubexpressionCount, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNullablegetTraceSQLpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic void setValue(Value v, boolean closeOld)
ParameterInterfacesetValue in interface ParameterInterfacev - the new valuecloseOld - if the old value (if one is set) should be closedpublic void setValue(Value v)
public Value getParamValue()
ParameterInterfacegetParamValue in interface ParameterInterfacepublic Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic TypeInfo getType()
ExpressiongetType in interface ParameterInterfacegetType in interface TypedgetType in class Expressionpublic void checkSet()
ParameterInterfacecheckSet in interface ParameterInterfacepublic Expression optimize(SessionLocal session)
Expressionoptimize in class Operation0session - the sessionpublic boolean isValueSet()
ExpressionisValueSet in interface ParameterInterfaceisValueSet in class Expressionpublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything in class Expressionvisitor - the visitorpublic int getCost()
ExpressiongetCost in class Expressionpublic Expression getNotIfPossible(SessionLocal session)
ExpressiongetNotIfPossible in class Expressionsession - the sessionpublic void setColumn(Column column)
public int getIndex()