Visitableclass UserTypeConstantNode extends ConstantNode
| Modifier and Type | Field | Description |
|---|---|---|
(package private) java.lang.Object |
val |
valueAUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_CYCLE, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEXtransformed| Constructor | Description |
|---|---|
UserTypeConstantNode(java.sql.Date d,
ContextManager cm) |
|
UserTypeConstantNode(java.sql.Time t,
ContextManager cm) |
|
UserTypeConstantNode(java.sql.Timestamp t,
ContextManager cm) |
|
UserTypeConstantNode(DataValueDescriptor dvd,
ContextManager cm) |
|
UserTypeConstantNode(TypeId t,
ContextManager cm) |
| Modifier and Type | Method | 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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, 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, verifyClassExistbindExpression, 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, verifyPutAndsOnTopUserTypeConstantNode(TypeId t, ContextManager cm) throws StandardException
StandardExceptionUserTypeConstantNode(java.sql.Date d,
ContextManager cm)
throws StandardException
StandardExceptionUserTypeConstantNode(java.sql.Time t,
ContextManager cm)
throws StandardException
StandardExceptionUserTypeConstantNode(java.sql.Timestamp t,
ContextManager cm)
throws StandardException
StandardExceptionUserTypeConstantNode(DataValueDescriptor dvd, ContextManager cm) throws StandardException
dvd - Must contain a Date, Time or Timestamp valuecm - context managerStandardExceptionprivate static TypeId getTypeId(DataValueDescriptor dvd)
private static int getWidth(DataValueDescriptor dvd)
public java.lang.Object getObjectValue()
boolean isNull()
isNull in class ConstantNodejava.lang.Object getConstantValueAsObject()
getConstantValueAsObject in class ValueNodevoid 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 ConstantNodeacb - 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 ConstantNodeacb - The ExpressionClassBuilder for the class being builtmb - The method the expression will go intoStandardException - Thrown on errorApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.