public final class CurrentGeneralValueSpecification extends Operation0 implements NamedExpression
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_CATALOG
The "CURRENT_CATALOG" general value specification.
|
static int |
CURRENT_PATH
The "CURRENT_PATH" general value specification.
|
static int |
CURRENT_ROLE
The function "CURRENT_ROLE" general value specification.
|
static int |
CURRENT_SCHEMA
The function "CURRENT_SCHEMA" general value specification.
|
static int |
CURRENT_USER
The function "CURRENT_USER" general value specification.
|
static int |
SESSION_USER
The function "SESSION_USER" general value specification.
|
static int |
SYSTEM_USER
The function "SYSTEM_USER" general value specification.
|
AUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESES
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Constructor and Description |
---|
CurrentGeneralValueSpecification(int specification) |
Modifier and Type | Method and Description |
---|---|
int |
getCost()
Estimate the cost to process the expression.
|
java.lang.String |
getName()
Get the name.
|
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.
|
mapColumns, optimize, setEvaluatable, updateAggregate
addFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getSubexpression, getSubexpressionCount, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public static final int CURRENT_CATALOG
public static final int CURRENT_PATH
public static final int CURRENT_ROLE
public static final int CURRENT_SCHEMA
public static final int CURRENT_USER
public static final int SESSION_USER
public static final int SYSTEM_USER
public CurrentGeneralValueSpecification(int specification)
public Value getValue(SessionLocal session)
Expression
getValue
in class Expression
session
- the sessionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder, int sqlFlags)
Expression
getUnenclosedSQL
in class Expression
builder
- string buildersqlFlags
- formatting flagspublic boolean isEverything(ExpressionVisitor visitor)
Expression
isEverything
in class Expression
visitor
- the visitorpublic TypeInfo getType()
Expression
getType
in interface Typed
getType
in class Expression
public int getCost()
Expression
getCost
in class Expression
public java.lang.String getName()
NamedExpression
getName
in interface NamedExpression