class UserTypeConstantNode extends ConstantNode
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Object |
val |
value
transformed
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
Constructor and Description |
---|
UserTypeConstantNode(DataValueDescriptor dvd,
ContextManager cm) |
UserTypeConstantNode(java.sql.Date d,
ContextManager cm) |
UserTypeConstantNode(java.sql.Time t,
ContextManager cm) |
UserTypeConstantNode(java.sql.Timestamp t,
ContextManager cm) |
UserTypeConstantNode(TypeId t,
ContextManager cm) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
generateConstant(ExpressionClassBuilder acb,
MethodBuilder mb)
Should never be called for UserTypeConstantNode because
we have our own generateExpression().
|
(package private) void |
generateExpression(ExpressionClassBuilder acb,
MethodBuilder mb)
For a UserTypeConstantNode, we have to store away the object somewhere
and have a way to get it back at runtime.
|
(package private) java.lang.Object |
getConstantValueAsObject()
Return an Object representing the bind time value of this
expression tree.
|
java.lang.Object |
getObjectValue()
Return the object value of this user defined type.
|
private static TypeId |
getTypeId(DataValueDescriptor dvd) |
private static int |
getWidth(DataValueDescriptor dvd) |
(package private) boolean |
isNull()
Return whether or not this node represents a typed null constant.
|
bindExpression, constantExpression, getClone, getOrderableVariantType, getValue, isCloneable, isConstantExpression, isEquivalent, setValue, toString
bindExpression, categorize, changeToCNF, checkIsBoolean, checkTopPredicatesForEqualsConditions, copyFields, eliminateNots, evaluateConstantExpressions, genEqualsFalseTree, generate, genIsNullTree, genSQLJavaSQLTree, getColumnName, getDataValueFactory, getSchemaName, getSourceResultColumn, getTableName, getTablesReferenced, getTransformed, getTypeCompiler, getTypeId, getTypeServices, isBinaryEqualsOperatorNode, isBooleanFalse, isBooleanTrue, isInListProbeNode, isParameterNode, isRelationalOperator, isSameNodeKind, optimizableEqualityNode, preprocess, putAndsOnTop, remapColumnReferencesToExpressions, requiresTypeFromContext, selectivity, setCollationInfo, setCollationInfo, setCollationUsingCompilationSchema, setCollationUsingCompilationSchema, setNullability, setTransformed, setType, setType, setType, updatableByCursor, verifyChangeToCNF, verifyEliminateNots, verifyPutAndsOnTop
accept, acceptChildren, addTag, addUDTUsagePriv, addUDTUsagePriv, bindOffsetFetch, bindRowMultiSet, bindUserCatalogType, bindUserType, checkReliability, checkReliability, convertDefaultNode, copyTagsFrom, createTypeDependency, debugFlush, debugPrint, disablePrivilegeCollection, formatNodeString, generateAuthorizeCheck, getBeginOffset, getClassFactory, getCompilerContext, getContext, getContextManager, getDataDictionary, getDependencyManager, getEndOffset, getExecutionFactory, getGenericConstantActionFactory, getIntProperty, getLanguageConnectionContext, getLongProperty, getNullNode, getOffsetOrderedNodes, getOptimizerFactory, getOptimizerTracer, getParameterTypes, getSchemaDescriptor, getSchemaDescriptor, getStatementType, getTableDescriptor, getTypeCompiler, getUDTDesc, isAtomic, isPrivilegeCollectionRequired, isSessionSchema, isSessionSchema, makeConstantAction, makeTableName, makeTableName, nodeHeader, optimizerTracingIsOn, orReliability, parseSearchCondition, parseStatement, printLabel, printSubNodes, referencesSessionSchema, resolveTableToSynonym, setBeginOffset, setEndOffset, setRefActionInfo, stackPrint, taggedWith, treePrint, treePrint, verifyClassExist
UserTypeConstantNode(TypeId t, ContextManager cm) throws StandardException
StandardException
UserTypeConstantNode(java.sql.Date d, ContextManager cm) throws StandardException
StandardException
UserTypeConstantNode(java.sql.Time t, ContextManager cm) throws StandardException
StandardException
UserTypeConstantNode(java.sql.Timestamp t, ContextManager cm) throws StandardException
StandardException
UserTypeConstantNode(DataValueDescriptor dvd, ContextManager cm) throws StandardException
dvd
- Must contain a Date, Time or Timestamp valuecm
- context managerStandardException
private static TypeId getTypeId(DataValueDescriptor dvd)
private static int getWidth(DataValueDescriptor dvd)
public java.lang.Object getObjectValue()
boolean isNull()
isNull
in class ConstantNode
java.lang.Object getConstantValueAsObject()
getConstantValueAsObject
in class ValueNode
void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
A null is generated as a Null value cast to the type of the constant node.
generateExpression
in class ConstantNode
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the expression will go intoStandardException
- Thrown on errorvoid generateConstant(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException
generateConstant
in class ConstantNode
acb
- The ExpressionClassBuilder for the class being builtmb
- The method the expression will go intoStandardException
- Thrown on errorApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.