Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.resolver

public abstract Class AbstractRangeDeclaration

extends Declaration
Class Inheritance
Known Direct Subclasses
org.eclipse.persistence.jpa.jpql.tools.resolver.DerivedDeclaration, org.eclipse.persistence.jpa.jpql.tools.resolver.RangeDeclaration
Imports
java.util.Collections, .LinkedList, .List, org.eclipse.persistence.jpa.jpql.parser.Join

The abstract definition of a range declaration, which is used to navigate to a "root" object.
Author
Pascal Filion
Since
2.5
Version
2.5
See Also
DerivedDeclaration, RangeDeclaration

Field Summary

Modifier and TypeField and Description
protected List<Join>
joins

The list of JOIN expressions that are declared in the same declaration than the range variable declaration represented by this declaration.

Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration:
baseExpressiondeclarationExpressionidentificationVariablerootPath

Constructor Summary

AccessConstructor and Description
public
AbstractRangeDeclaration()

Creates a new AbstractRangeDeclaration.

Method Summary

Modifier and TypeMethod and Description
protected void
addJoin(Join
The Join that is declared in the range variable declaration
join
)

Adds the given Join.

public List<Join>
getJoins()

Overrides org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration.getJoins.

Implements org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration.getJoins.

Returns the JOIN expressions defined with this declaration, if supported.
public boolean
Inherited from org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration:
getBaseExpressiongetDeclarationExpressiongetIdentificationVariablegetRootPathgetVariableNametoString

Field Detail

joinsback to summary
protected List<Join> joins

The list of JOIN expressions that are declared in the same declaration than the range variable declaration represented by this declaration.

Constructor Detail

AbstractRangeDeclarationback to summary
public AbstractRangeDeclaration()

Creates a new AbstractRangeDeclaration.

Method Detail

addJoinback to summary
protected void addJoin(Join join)

Adds the given Join.

Parameters
join:Join

The Join that is declared in the range variable declaration

getJoinsback to summary
public List<Join> getJoins()

Overrides org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration.getJoins.

Implements org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration.getJoins.

Doc from org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration.getJoins.

Returns the JOIN expressions defined with this declaration, if supported. The list contains the JOIN expressions in ordered they were declared.

Returns:List<Join>

The JOIN expressions defined with this declaration or an empty list if this declaration does not support it

Annotations
@Override
hasJoinsback to summary
public boolean hasJoins()

Overrides org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration.hasJoins.

Implements org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration.hasJoins.

Doc from org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration.hasJoins.

Determines whether the declaration contains JOIN expressions. This can be true only when Type#isRange() returns true. A collection member declaration does not have JOIN expressions.

Returns:boolean

true if at least one JOIN expression was parsed; otherwise false

Annotations
@Override