Class ParameterNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.ParameterNode
-
public class ParameterNode extends Node
INTERNALPurpose: This node represnts a Parameter (?1) in an EJBQL
Responsibilities:
- Generate the correct expression for an AND in EJBQL
- Maintain a
- Since:
- TopLink 4.0
- Author:
- Jon Driscoll and Joel Lucuik
-
-
Field Summary
-
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
-
Constructor Summary
Constructors Constructor Description ParameterNode()Return a new ParameterNode.ParameterNode(java.lang.String newParameterName)INTERNAL Create a new ParameterNode with the passed string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressiongenerateExpression(GenerationContext context)Generate the result expression, must use the base builder to avoid getting multiple builders.java.lang.StringgetAsString()INTERNAL Return the parameterNamejava.lang.StringgetParameterName()INTERNAL Return the parameter namebooleanisParameterNode()INTERNAL Yes this is a Parameter nodevoidsetParameterName(java.lang.String name)voidvalidateParameter(ParseTreeContext context, java.lang.Object contextType)INTERNAL-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, applyToQuery, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAliasableNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validate
-
-
-
-
Method Detail
-
validateParameter
public void validateParameter(ParseTreeContext context, java.lang.Object contextType)
INTERNAL- Overrides:
validateParameterin classNode
-
generateExpression
public Expression generateExpression(GenerationContext context)
Generate the result expression, must use the base builder to avoid getting multiple builders.- Overrides:
generateExpressionin classNode
-
getAsString
public java.lang.String getAsString()
INTERNAL Return the parameterName- Overrides:
getAsStringin classNode
-
getParameterName
public java.lang.String getParameterName()
INTERNAL Return the parameter name
-
setParameterName
public void setParameterName(java.lang.String name)
-
isParameterNode
public boolean isParameterNode()
INTERNAL Yes this is a Parameter node- Overrides:
isParameterNodein classNode
-
-