Class SubstringNode
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.parsing.Node
-
- org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
-
- org.eclipse.persistence.internal.jpa.parsing.StringFunctionNode
-
- org.eclipse.persistence.internal.jpa.parsing.SubstringNode
-
- All Implemented Interfaces:
AliasableNode
public class SubstringNode extends StringFunctionNode
INTERNALPurpose: Represent a SUBSTRING
Responsibilities:
- Generate the correct expression for SUBSTRING
- 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 SubstringNode()
SubstringNode constructor comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Expression
generateExpression(GenerationContext context)
INTERNAL Generate the EclipseLink expression for this nodeNode
qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the child nodes for an unqualified field access and if so, replace them by a qualified field access.void
setStartPosition(Node newStartPosition)
Insert the method's description here.void
setStringLength(Node newStringLength)
Insert the method's description here.void
validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.FunctionalExpressionNode
applyToQuery, isAliasableNode
-
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getAsString, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAggregateNode, isAttributeNode, isConstructorNode, isCountNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, resolveAttribute, resolveClass, resolveClass, resolveMapping, resolveMapping, setAlias, setColumn, setLeft, setLine, setRight, setType, toString, toString, toStringDisplayName, toStringIndent, validateParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.persistence.internal.jpa.parsing.AliasableNode
getAlias, setAlias
-
-
-
-
Method Detail
-
qualifyAttributeAccess
public Node qualifyAttributeAccess(ParseTreeContext context)
INTERNAL Check the child nodes for an unqualified field access and if so, replace them by a qualified field access.- Overrides:
qualifyAttributeAccess
in classNode
-
validate
public void validate(ParseTreeContext context)
INTERNAL Validate node and calculate its type.
-
generateExpression
public Expression generateExpression(GenerationContext context)
INTERNAL Generate the EclipseLink expression for this node- Overrides:
generateExpression
in classNode
-
setStartPosition
public void setStartPosition(Node newStartPosition)
Insert the method's description here. Creation date: (1/19/01 3:41:55 PM)- Parameters:
newStartPosition
- java.lang.Integer
-
setStringLength
public void setStringLength(Node newStringLength)
Insert the method's description here. Creation date: (1/19/01 3:42:26 PM)- Parameters:
newStringLength
- java.lang.Integer
-
-