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.
|
java.lang.String |
getJavaTypeName() |
JSQLType |
getJSQLType()
Get the JSQLType that corresponds to this node.
|
java.lang.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(java.lang.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, treePrint
protected boolean forCallStatement
protected JSQLType jsqlType
public void copyFrom(QueryTreeNode node) throws StandardException
copyFrom
in class QueryTreeNode
StandardException
public DataTypeDescriptor getType() throws StandardException
StandardException
public boolean isPrimitiveType() throws StandardException
StandardException
public java.lang.String getJavaTypeName() throws StandardException
StandardException
public void setJavaTypeName(java.lang.String javaTypeName)
public java.lang.String getPrimitiveTypeName() throws StandardException
StandardException
public 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 mapStandardException
public void markForCallStatement()
protected void returnValueToSQLDomain()
protected boolean valueReturnedToSQLDomain()
protected void markReturnValueDiscarded()
protected boolean returnValueDiscarded()
Copyright © 2013. All Rights Reserved.