public class ParameterNode extends Node
Purpose: This node represnts a Parameter (?1) in an EJBQL
Responsibilities:
left, right, shouldGenerateExpression
Constructor and Description |
---|
ParameterNode()
Return a new ParameterNode.
|
ParameterNode(String newParameterName)
INTERNAL
Create a new ParameterNode with the passed string.
|
Modifier and Type | Method and Description |
---|---|
Expression |
generateExpression(GenerationContext context)
INTERNAL
Generate an expression for the node.
|
String |
getAsString()
INTERNAL
Return the parameterName
|
String |
getParameterName()
INTERNAL
Return the parameter name
|
boolean |
isParameterNode()
INTERNAL
Yes this is a Parameter node
|
void |
setParameterName(String name) |
void |
validateParameter(ParseTreeContext context,
Object contextType)
INTERNAL
|
addToExpression, appendExpression, applyToQuery, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMinusNode, isMultiplyNode, isNotNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validate
public ParameterNode()
public ParameterNode(String newParameterName)
newVariableName
- java.lang.Stringpublic void validateParameter(ParseTreeContext context, Object contextType)
validateParameter
in class Node
public Expression generateExpression(GenerationContext context)
Node
generateExpression
in class Node
public String getAsString()
getAsString
in class Node
public String getParameterName()
public void setParameterName(String name)
public boolean isParameterNode()
isParameterNode
in class Node
Copyright © 2021. All rights reserved.