public abstract class JavaValueNode extends QueryTreeNode
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
forCallStatement |
protected JSQLType |
jsqlType |
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX| Constructor and Description |
|---|
JavaValueNode() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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, treePrintprotected boolean forCallStatement
protected JSQLType jsqlType
public void copyFrom(QueryTreeNode node) throws StandardException
copyFrom in class QueryTreeNodeStandardExceptionpublic DataTypeDescriptor getType() throws StandardException
StandardExceptionpublic boolean isPrimitiveType()
throws StandardException
StandardExceptionpublic 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
StandardExceptionpublic TypeId mapToTypeID(JSQLType jsqlType) throws StandardException
jsqlType - the universal type to mapStandardExceptionpublic void markForCallStatement()
protected void returnValueToSQLDomain()
protected boolean valueReturnedToSQLDomain()
protected void markReturnValueDiscarded()
protected boolean returnValueDiscarded()
Copyright © 2015 FoundationDB, LLC. All rights reserved.