Module org.eclipse.persistence.core
Class ParameterNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.ParameterNode
INTERNAL
Purpose: 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
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression -
Constructor Summary
ConstructorsConstructorDescriptionReturn a new ParameterNode.ParameterNode(String newParameterName) INTERNAL Create a new ParameterNode with the passed string. -
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression(GenerationContext context) Generate the result expression, must use the base builder to avoid getting multiple builders.INTERNAL Return the parameterNameINTERNAL Return the parameter namebooleanINTERNAL Yes this is a Parameter nodevoidsetParameterName(String name) voidvalidateParameter(ParseTreeContext context, Object contextType) INTERNALMethods 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
-
Constructor Details
-
ParameterNode
public ParameterNode()Return a new ParameterNode. -
ParameterNode
INTERNAL Create a new ParameterNode with the passed string.- Parameters:
newParameterName- java.lang.String
-
-
Method Details
-
validateParameter
INTERNAL- Overrides:
validateParameterin classNode
-
generateExpression
Generate the result expression, must use the base builder to avoid getting multiple builders.- Overrides:
generateExpressionin classNode
-
getAsString
INTERNAL Return the parameterName- Overrides:
getAsStringin classNode
-
getParameterName
INTERNAL Return the parameter name -
setParameterName
-
isParameterNode
public boolean isParameterNode()INTERNAL Yes this is a Parameter node- Overrides:
isParameterNodein classNode
-