|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.UserTypeConstantNode
public class UserTypeConstantNode
User type constants. These are created by built-in types that use user types as their implementation. This could also potentially be used by an optimizer that wanted to store plans for frequently-used parameter values. This is also used to represent nulls in user types, which occurs when NULL is inserted into or supplied as the update value for a usertype column.
| Field Summary | |
|---|---|
(package private) java.lang.Object |
value
|
| Fields inherited from class org.apache.derby.impl.sql.compile.ValueNode |
|---|
transformed |
| Fields inherited from class org.apache.derby.impl.sql.compile.QueryTreeNode |
|---|
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX, isPrivilegeCollectionRequired |
| Constructor Summary | |
|---|---|
UserTypeConstantNode()
|
|
| Method Summary | |
|---|---|
(package private) void |
generateConstant(ExpressionClassBuilder acb,
MethodBuilder mb)
Should never be called for UserTypeConstantNode because we have our own generateExpression(). |
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. |
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. |
void |
init(java.lang.Object arg1)
Initializer for a typed null node or a date, time, or timestamp value. |
boolean |
isNull()
Return whether or not this node represents a typed null constant. |
| Methods inherited from class org.apache.derby.impl.sql.compile.ConstantNode |
|---|
bindExpression, constantExpression, getClone, getOrderableVariantType, getValue, init, isCloneable, isConstantExpression, isEquivalent, setValue, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
java.lang.Object value
| Constructor Detail |
|---|
public UserTypeConstantNode()
| Method Detail |
|---|
public void init(java.lang.Object arg1)
throws StandardException
- OR -
init in interface Nodeinit in class QueryTreeNodeStandardException - thrown on failurepublic java.lang.Object getObjectValue()
public boolean isNull()
isNull in class ConstantNodepublic java.lang.Object getConstantValueAsObject()
getConstantValueAsObject in class ValueNode
public 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 ConstantNodeacb - The ExpressionClassBuilder for the class being builtmb - The method the expression will go into
StandardException - Thrown on error
void generateConstant(ExpressionClassBuilder acb,
MethodBuilder mb)
throws StandardException
generateConstant in class ConstantNodeacb - The ExpressionClassBuilder for the class being builtmb - The method the expression will go into
StandardException - Thrown on error
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||