org.apache.derby.impl.sql.compile
Class CharConstantNode
java.lang.Object
org.apache.derby.impl.sql.compile.QueryTreeNode
org.apache.derby.impl.sql.compile.ValueNode
org.apache.derby.impl.sql.compile.ConstantNode
org.apache.derby.impl.sql.compile.CharConstantNode
- All Implemented Interfaces:
- Visitable
public final class CharConstantNode
- extends ConstantNode
Methods inherited from class org.apache.derby.impl.sql.compile.ConstantNode |
constantExpression, generateExpression, getClone, getOrderableVariantType, getValue, init, isCloneable, isConstantExpression, isEquivalent, isNull, setValue, toString |
Methods inherited from class org.apache.derby.impl.sql.compile.ValueNode |
bindExpression, categorize, changeToCNF, checkIsBoolean, checkTopPredicatesForEqualsConditions, copyFields, eliminateNots, evaluateConstantExpressions, genEqualsFalseTree, generate, generateFilter, genIsNullTree, genSQLJavaSQLTree, getColumnName, getDataValueFactory, getSchemaName, getSourceResultColumn, getTableName, getTablesReferenced, getTransformed, getTypeCompiler, getTypeId, getTypeServices, init, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeType, optimizableEqualityNode, preprocess, putAndsOnTop, remapColumnReferencesToExpressions, requiresTypeFromContext, selectivity, setCollationInfo, setCollationInfo, setCollationUsingCompilationSchema, setCollationUsingCompilationSchema, setNullability, setTransformed, setType, setType, setType, updatableByCursor, verifyChangeToCNF, verifyEliminateNots, verifyPutAndsOnTop |
Methods inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
accept, acceptChildren, bindOffsetFetch, bindRowMultiSet, bindUserType, checkReliability, checkReliability, convertDefaultNode, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, foundString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContextManager, getCursorInfo, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getNodeFactory, getNodeType, getNullNode, getParameterTypes, getRowEstimate, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, init, init, init, init, init, init, init, init, init, init, isAtomic, isInstanceOf, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, orReliability, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setContextManager, setEndOffset, setNodeType, setRefActionInfo, stackPrint, treePrint, treePrint, verifyClassExist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CharConstantNode
public CharConstantNode()
init
public void init(java.lang.Object arg1)
throws StandardException
- Initializer for a CharConstantNode.
- Overrides:
init
in class QueryTreeNode
- Parameters:
arg1
- A String containing the value of the constant OR The TypeId for the type of the node
- Throws:
StandardException
init
public void init(java.lang.Object newValue,
java.lang.Object newLength)
throws StandardException
- Initializer for a CharConstantNode of a specific length.
- Overrides:
init
in class QueryTreeNode
- Parameters:
newValue
- A String containing the value of the constantnewLength
- The length of the new value of the constant
- Throws:
StandardException
getString
public java.lang.String getString()
throws StandardException
- Return the value from this CharConstantNode
- Returns:
- The value of this CharConstantNode.
- Throws:
StandardException
- Thrown on error
getConstantValueAsObject
java.lang.Object getConstantValueAsObject()
throws StandardException
- Return an Object representing the bind time value of this
expression tree. If the expression tree does not evaluate to
a constant at bind time then we return null.
This is useful for bind time resolution of VTIs.
RESOLVE: What do we do for primitives?
- Overrides:
getConstantValueAsObject
in class ValueNode
- Returns:
- An Object representing the bind time value of this expression tree.
(null if not a bind time constant.)
- Throws:
StandardException
- Thrown on error
bindExpression
public ValueNode bindExpression(FromList fromList,
SubqueryList subqueryList,
java.util.Vector aggregateVector)
throws StandardException
- Description copied from class:
ConstantNode
- Bind this expression. This means binding the sub-expressions,
as well as figuring out what the return type is for this expression.
In this case, there are no sub-expressions, and the return type
is already known, so this is just a stub.
- Overrides:
bindExpression
in class ConstantNode
- Parameters:
fromList
- The FROM list for the query this
expression is in, for binding columns.subqueryList
- The subquery list being built as we find SubqueryNodesaggregateVector
- The aggregate vector being built as we find AggregateNodes
- Returns:
- The new top of the expression tree.
- Throws:
StandardException
- Thrown on error. Although this class
doesn't throw this exception, it's subclasses do and hence this method
signature here needs to have throws StandardException
generateConstant
void generateConstant(ExpressionClassBuilder acb,
MethodBuilder mb)
throws StandardException
- This generates the proper constant. It is implemented
by every specific constant node (e.g. IntConstantNode).
- Specified by:
generateConstant
in class ConstantNode
- Parameters:
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the code to place the code
- Throws:
StandardException
- Thrown on error
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.