Class AbstractRangeDeclaration
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractRangeDeclaration
- All Implemented Interfaces:
JPQLQueryDeclaration
- Direct Known Subclasses:
DerivedDeclaration
,RangeDeclaration
The abstract definition of a range declaration, which is used to navigate to a "root" object.
- Since:
- 2.5
- Version:
- 2.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration
JPQLQueryDeclaration.Type
-
Field Summary
Modifier and TypeFieldDescriptionThe list of JOIN expressions that are declared in the same declaration than the range variable declaration represented by this declaration.Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
baseExpression, declarationExpression, identificationVariable, rootPath
-
Constructor Summary
-
Method Summary
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
getBaseExpression, getDeclarationExpression, getIdentificationVariable, getRootPath, getVariableName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration
getType
-
Field Details
-
joins
The list of JOIN expressions that are declared in the same declaration than the range variable declaration represented by this declaration.
-
-
Constructor Details
-
AbstractRangeDeclaration
public AbstractRangeDeclaration()Creates a newAbstractRangeDeclaration
.
-
-
Method Details
-
addJoin
Adds the givenJoin
.- Parameters:
join
- TheJoin
that is declared in the range variable declaration
-
getJoins
Description copied from interface:JPQLQueryDeclaration
Returns theJOIN
expressions defined with this declaration, if supported. The list contains theJOIN
expressions in ordered they were declared.- Specified by:
getJoins
in interfaceJPQLQueryDeclaration
- Overrides:
getJoins
in classDeclaration
- Returns:
- The JOIN expressions defined with this declaration or an empty list if this declaration does not support it
-
hasJoins
public boolean hasJoins()Description copied from interface:JPQLQueryDeclaration
Determines whether the declaration contains JOIN expressions. This can betrue
only whenJPQLQueryDeclaration.Type.isRange()
returnstrue
. A collection member declaration does not have JOIN expressions.- Specified by:
hasJoins
in interfaceJPQLQueryDeclaration
- Overrides:
hasJoins
in classDeclaration
- Returns:
true
if at least one JOIN expression was parsed; otherwisefalse
-