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| 构造器和说明 |
|---|
Parameter(int index) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
StringBuilder |
getUnenclosedSQL(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 StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags)
ExpressiongetUnenclosedSQL 在类中 Expressionbuilder - string buildersqlFlags - formatting flagspublic void setValue(Value v, boolean closeOld)
ParameterInterfacesetValue 在接口中 ParameterInterfacev - the new valuecloseOld - if the old value (if one is set) should be closedpublic void setValue(Value v)
public Value getParamValue()
ParameterInterfacegetParamValue 在接口中 ParameterInterfacepublic Value getValue(SessionLocal session)
ExpressiongetValue 在类中 Expressionsession - the sessionpublic TypeInfo getType()
ExpressiongetType 在接口中 ParameterInterfacegetType 在接口中 TypedgetType 在类中 Expressionpublic void checkSet()
ParameterInterfacecheckSet 在接口中 ParameterInterfacepublic Expression optimize(SessionLocal session)
Expressionoptimize 在类中 Operation0session - the sessionpublic boolean isValueSet()
ExpressionisValueSet 在接口中 ParameterInterfaceisValueSet 在类中 Expressionpublic boolean isEverything(ExpressionVisitor visitor)
ExpressionisEverything 在类中 Expressionvisitor - the visitorpublic int getCost()
ExpressiongetCost 在类中 Expressionpublic Expression getNotIfPossible(SessionLocal session)
ExpressiongetNotIfPossible 在类中 Expressionsession - the sessionpublic void setColumn(Column column)
public int getIndex()
Copyright © 2022. All rights reserved.