Module org.eclipse.persistence.core
Class TrimNode
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.TrimNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Represent a TRIM
Responsibilities:
- Generate the correct expression for TRIM
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateExpression
(GenerationContext context) INTERNAL Generate the TopLink expression for this nodeboolean
isBoth()
boolean
boolean
void
setBoth
(boolean newBoth) void
setLeading
(boolean newLeading) void
setTrailing
(boolean newTrailing) void
setTrimChar
(Node trimChar) 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, qualifyAttributeAccess, 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
-
Constructor Details
-
TrimNode
public TrimNode()TrimNode constructor.
-
-
Method Details
-
validate
INTERNAL Validate node and calculate its type. -
generateExpression
INTERNAL Generate the TopLink expression for this node- Overrides:
generateExpression
in classNode
-
setTrimChar
-
isLeading
public boolean isLeading() -
setLeading
public void setLeading(boolean newLeading) -
isTrailing
public boolean isTrailing() -
setTrailing
public void setTrailing(boolean newTrailing) -
isBoth
public boolean isBoth() -
setBoth
public void setBoth(boolean newBoth)
-