public abstract class AbstractRangeDeclaration extends Declaration
DerivedDeclaration
,
RangeDeclaration
JPQLQueryDeclaration.Type
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Join> |
joins
The list of JOIN expressions that are declared in the same declaration than the range
variable declaration represented by this declaration.
|
baseExpression, declarationExpression, identificationVariable, rootPath
Constructor and Description |
---|
AbstractRangeDeclaration()
Creates a new
AbstractRangeDeclaration . |
Modifier and Type | Method and Description |
---|---|
protected void |
addJoin(Join join)
Adds the given
Join . |
java.util.List<Join> |
getJoins()
Returns the
JOIN expressions defined with this declaration, if supported. |
boolean |
hasJoins()
Determines whether the declaration contains JOIN expressions.
|
getBaseExpression, getDeclarationExpression, getIdentificationVariable, getRootPath, getVariableName, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getType
protected java.util.List<Join> joins
public AbstractRangeDeclaration()
AbstractRangeDeclaration
.protected void addJoin(Join join)
Join
.join
- The Join
that is declared in the range variable declarationpublic java.util.List<Join> getJoins()
JOIN
expressions defined with this declaration, if supported.
The list contains the JOIN
expressions in ordered they were declared.getJoins
in interface JPQLQueryDeclaration
getJoins
in class Declaration
public boolean hasJoins()
true
only when #isRange()
returns true
. A collection
member declaration does not have JOIN expressions.hasJoins
in interface JPQLQueryDeclaration
hasJoins
in class Declaration
true
if at least one JOIN expression was parsed;
otherwise false