com.akiban.sql.parser
Class SQLToJavaValueNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.JavaValueNode
          extended by 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.


Field Summary
 
Fields inherited from class com.akiban.sql.parser.JavaValueNode
forCallStatement, jsqlType
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
SQLToJavaValueNode()
           
 
Method Summary
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 ValueNode getSQLValueNode()
          Get the SQL ValueNode that is being converted to a JavaValueNode
 DataTypeDescriptor getType()
          Override behavior in superclass.
 void init(Object value)
          Constructor for a SQLToJavaValueNode
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 void setSQLValueNode(ValueNode value)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLToJavaValueNode

public SQLToJavaValueNode()
Method Detail

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.