com.akiban.sql.parser
Class SQLToJavaValueNode
java.lang.Object
com.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.JavaValueNode
com.akiban.sql.parser.SQLToJavaValueNode
- All Implemented Interfaces:
- Visitable
public class SQLToJavaValueNode
- extends JavaValueNode
This node type converts a value in the SQL domain to a value in the Java
domain.
| Methods inherited from class com.akiban.sql.parser.JavaValueNode |
castToPrimitive, getJavaTypeName, getJSQLType, getPrimitiveTypeName, isPrimitiveType, mapToTypeID, markForCallStatement, markReturnValueDiscarded, mustCastToPrimitive, returnValueDiscarded, returnValueToSQLDomain, setJavaTypeName, valueReturnedToSQLDomain |
| Methods inherited from class com.akiban.sql.parser.QueryTreeNode |
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, toString, treePrint, treePrint, treePrint |
SQLToJavaValueNode
public SQLToJavaValueNode()
init
public void init(Object value)
- Constructor for a SQLToJavaValueNode
- Overrides:
init in class QueryTreeNode
- Parameters:
value - A ValueNode representing a SQL value to convert to
the Java domain.
copyFrom
public void copyFrom(QueryTreeNode node)
throws StandardException
- Fill this node with a deep copy of the given node.
- Overrides:
copyFrom in class JavaValueNode
- Throws:
StandardException
printSubNodes
public void printSubNodes(int depth)
- Prints the sub-nodes of this object. See QueryTreeNode.java for
how tree printing is supposed to work.
- Overrides:
printSubNodes in class QueryTreeNode
- Parameters:
depth - The depth of this node in the tree
getType
public DataTypeDescriptor getType()
throws StandardException
- Override behavior in superclass.
- Overrides:
getType in class JavaValueNode
- Throws:
StandardException
getSQLValueNode
public ValueNode getSQLValueNode()
- Get the SQL ValueNode that is being converted to a JavaValueNode
- Returns:
- The underlying SQL ValueNode
setSQLValueNode
public void setSQLValueNode(ValueNode value)
Copyright © 2013 Akiban Technologies, Inc. All rights reserved.