Class Declaration
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
- All Implemented Interfaces:
- JPQLQueryDeclaration
- Direct Known Subclasses:
- AbstractRangeDeclaration,- CollectionDeclaration,- SubqueryDeclaration,- TableDeclaration,- UnknownDeclaration
The abstract definition of 
JPQLQueryDeclaration.- Since:
- 2.5
- Version:
- 2.5
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.persistence.jpa.jpql.JPQLQueryDeclarationJPQLQueryDeclaration.Type
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected ExpressionEither the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.protected ExpressionThe declaration expression, which is either anIdentificationVariableDeclarationor aCollectionMemberDeclarationwhen part of a FROM clause, otherwise it's either theDeleteClauseor theUpdateClause.protected IdentificationVariableThe identification variable used to declare the "root" object.protected StringThe "root" object for objects which may not be reachable by navigation, it is either the abstract schema name (entity name), a derived path expression (which is only defined in a subquery) ornullif thisDeclarationis a collection member declaration.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.Returns the declaration expression, which is either anIdentificationVariableDeclarationor aCollectionMemberDeclarationwhen part of a FROM clause, otherwise it's either theDeleteClauseor theUpdateClause.Returns theIdentificationVariableused to declare the "root" object.getJoins()Returns theJOINexpressions defined with this declaration, if supported.Returns the "root" object for objects which may not be reachable by navigation, it is either the abstract schema name (entity name), a derived path expression (which is only defined in a subquery) ornullif thisDeclarationis a collection member declaration.Returns the identification variable name that is defining either the abstract schema name or the collection-valued path expressionbooleanhasJoins()Determines whether the declaration contains JOIN expressions.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.persistence.jpa.jpql.JPQLQueryDeclarationgetType
- 
Field Details- 
baseExpressionEither the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.
- 
declarationExpressionThe declaration expression, which is either anIdentificationVariableDeclarationor aCollectionMemberDeclarationwhen part of a FROM clause, otherwise it's either theDeleteClauseor theUpdateClause.
- 
identificationVariableThe identification variable used to declare the "root" object.
- 
rootPathThe "root" object for objects which may not be reachable by navigation, it is either the abstract schema name (entity name), a derived path expression (which is only defined in a subquery) ornullif thisDeclarationis a collection member declaration.
 
- 
- 
Constructor Details- 
Declarationprotected Declaration()Creates a newDeclaration.
 
- 
- 
Method Details- 
getBaseExpressionDescription copied from interface:JPQLQueryDeclarationReturns the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration.- Specified by:
- getBaseExpressionin interface- JPQLQueryDeclaration
- Returns:
- Either the range variable declaration or the collection-valued path expression
 
- 
getDeclarationExpressionDescription copied from interface:JPQLQueryDeclarationReturns the declaration expression, which is either anIdentificationVariableDeclarationor aCollectionMemberDeclarationwhen part of a FROM clause, otherwise it's either theDeleteClauseor theUpdateClause.- Specified by:
- getDeclarationExpressionin interface- JPQLQueryDeclaration
- Returns:
- The root of the declaration expression
 
- 
getIdentificationVariableReturns theIdentificationVariableused to declare the "root" object.- Returns:
- The alias for the "root" object
 
- 
getJoinsDescription copied from interface:JPQLQueryDeclarationReturns theJOINexpressions defined with this declaration, if supported. The list contains theJOINexpressions in ordered they were declared.- Specified by:
- getJoinsin interface- JPQLQueryDeclaration
- Returns:
- The JOIN expressions defined with this declaration or an empty list if this declaration does not support it
 
- 
getRootPathReturns the "root" object for objects which may not be reachable by navigation, it is either the abstract schema name (entity name), a derived path expression (which is only defined in a subquery) ornullif thisDeclarationis a collection member declaration.- Returns:
- The "root" object for objects which may not be reachable by navigation or
 nullif thisDeclarationis a collection member declaration
 
- 
getVariableNameDescription copied from interface:JPQLQueryDeclarationReturns the identification variable name that is defining either the abstract schema name or the collection-valued path expression- Specified by:
- getVariableNamein interface- JPQLQueryDeclaration
- Returns:
- The identification variable or an empty string if none was defined
 
- 
hasJoinspublic boolean hasJoins()Description copied from interface:JPQLQueryDeclarationDetermines whether the declaration contains JOIN expressions. This can betrueonly whenJPQLQueryDeclaration.Type.isRange()returnstrue. A collection member declaration does not have JOIN expressions.- Specified by:
- hasJoinsin interface- JPQLQueryDeclaration
- Returns:
- trueif at least one JOIN expression was parsed; otherwise- false
 
- 
toString
 
-