EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference

org.eclipse.persistence.jpa.jpql.tools.resolver
Class AbstractRangeDeclaration

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
      extended by org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractRangeDeclaration
All Implemented Interfaces:
JPQLQueryDeclaration
Direct Known Subclasses:
DerivedDeclaration, RangeDeclaration

public abstract class AbstractRangeDeclaration
extends Declaration

The abstract definition of a range declaration, which is used to navigate to a "root" object.

Version:
2.5
See Also:
DerivedDeclaration, RangeDeclaration
Author:
Pascal Filion
Since:
2.5

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.JPQLQueryDeclaration
JPQLQueryDeclaration.Type
 
Field Summary
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.
 
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
baseExpression, declarationExpression, identificationVariable, rootPath
 
Constructor Summary
AbstractRangeDeclaration()
          Creates a new AbstractRangeDeclaration.
 
Method Summary
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.
 
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 Detail

joins

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.

Constructor Detail

AbstractRangeDeclaration

public AbstractRangeDeclaration()
Creates a new AbstractRangeDeclaration.

Method Detail

addJoin

protected void addJoin(Join join)
Adds the given Join.

Parameters:
join - The Join that is declared in the range variable declaration

getJoins

public java.util.List<Join> getJoins()
Returns the JOIN expressions defined with this declaration, if supported. The list contains the JOIN expressions in ordered they were declared.

Specified by:
getJoins in interface JPQLQueryDeclaration
Overrides:
getJoins in class Declaration
Returns:
The JOIN expressions defined with this declaration or an empty list if this declaration does not support it

hasJoins

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

Specified by:
hasJoins in interface JPQLQueryDeclaration
Overrides:
hasJoins in class Declaration
Returns:
true if at least one JOIN expression was parsed; otherwise false

EclipseLink 2.5.0, build 'v20130507-3faac2b' API Reference