|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.akiban.sql.parser.QueryTreeNode
com.akiban.sql.parser.JavaValueNode
public abstract class JavaValueNode
This abstract node class represents a data value in the Java domain.
| Field Summary | |
|---|---|
protected boolean |
forCallStatement
|
protected JSQLType |
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 | |
|---|---|
JavaValueNode()
|
|
| Method Summary | |
|---|---|
void |
castToPrimitive(boolean booleanValue)
Toggles whether the code generator should add a cast to extract a primitive value from an object. |
void |
copyFrom(QueryTreeNode node)
Fill this node with a deep copy of the given node. |
String |
getJavaTypeName()
|
JSQLType |
getJSQLType()
Get the JSQLType that corresponds to this node. |
String |
getPrimitiveTypeName()
|
DataTypeDescriptor |
getType()
Get the resolved data type of this node. |
boolean |
isPrimitiveType()
|
TypeId |
mapToTypeID(JSQLType jsqlType)
Map a JSQLType to a compilation type id. |
void |
markForCallStatement()
Mark this node as being for a CALL Statement. |
protected void |
markReturnValueDiscarded()
Tell this node that nothing is done with the returned value |
boolean |
mustCastToPrimitive()
Reports whether the code generator should add a cast to extract a primitive value from an object. |
protected boolean |
returnValueDiscarded()
Tell whether the return value from this node is discarded |
protected void |
returnValueToSQLDomain()
Inform this node that it returns its value to the SQL domain |
void |
setJavaTypeName(String javaTypeName)
|
protected boolean |
valueReturnedToSQLDomain()
Tell whether this node returns its value to the SQL domain |
| 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, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, printSubNodes, 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 |
| Field Detail |
|---|
protected boolean forCallStatement
protected JSQLType jsqlType
| Constructor Detail |
|---|
public JavaValueNode()
| Method Detail |
|---|
public void copyFrom(QueryTreeNode node)
throws StandardException
copyFrom in class QueryTreeNodeStandardException
public DataTypeDescriptor getType()
throws StandardException
StandardException
public boolean isPrimitiveType()
throws StandardException
StandardException
public String getJavaTypeName()
throws StandardException
StandardExceptionpublic void setJavaTypeName(String javaTypeName)
public String getPrimitiveTypeName()
throws StandardException
StandardExceptionpublic void castToPrimitive(boolean booleanValue)
booleanValue - true if we want the code generator to add a cast
false otherwisepublic boolean mustCastToPrimitive()
public JSQLType getJSQLType()
throws StandardException
StandardException
public TypeId mapToTypeID(JSQLType jsqlType)
throws StandardException
jsqlType - the universal type to map
StandardExceptionpublic void markForCallStatement()
protected void returnValueToSQLDomain()
protected boolean valueReturnedToSQLDomain()
protected void markReturnValueDiscarded()
protected boolean returnValueDiscarded()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||