Module org.eclipse.persistence.core
Class CountNode
java.lang.Object
org.eclipse.persistence.internal.jpa.parsing.Node
org.eclipse.persistence.internal.jpa.parsing.AggregateNode
org.eclipse.persistence.internal.jpa.parsing.CountNode
- All Implemented Interfaces:
AliasableNode
INTERNAL
Purpose: Model a COUNT
Responsibilities:
- Apply itself to a query correctly
- Since:
- TopLink 5.0
-
Field Summary
Fields inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
alias, left, right, shouldGenerateExpression
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Expression
INTERNALvoid
applyToQuery
(ObjectLevelReadQuery theQuery, GenerationContext context) INTERNAL Apply this node to the passed queryINTERNAL Get the string representation of this node.boolean
INTERNAL Is this node a CountNodevoid
validate
(ParseTreeContext context) INTERNAL Validate node and calculate its type.Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.AggregateNode
generateExpression, isAggregateNode, isAliasableNode, resolveAttribute, resolveClass, setDistinct, usesDistinct
Methods inherited from class org.eclipse.persistence.internal.jpa.parsing.Node
addToExpression, appendExpression, getAlias, getColumn, getLeft, getLine, getRight, getType, hasLeft, hasRight, isAttributeNode, isConstructorNode, isDivideNode, isDotNode, isEscape, isLiteralNode, isMapKeyNode, isMinusNode, isMultiplyNode, isNotNode, isParameterNode, isPlusNode, isSubqueryNode, isVariableNode, qualifyAttributeAccess, 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
-
CountNode
public CountNode()
-
-
Method Details
-
applyToQuery
INTERNAL Apply this node to the passed query- Overrides:
applyToQuery
in classNode
-
validate
INTERNAL Validate node and calculate its type. -
addAggregateExression
INTERNAL- Specified by:
addAggregateExression
in classAggregateNode
-
isCountNode
public boolean isCountNode()INTERNAL Is this node a CountNode- Overrides:
isCountNode
in classNode
-
getAsString
INTERNAL Get the string representation of this node.- Overrides:
getAsString
in classNode
-