Class DerivedDeclaration
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractRangeDeclaration
-
- org.eclipse.persistence.jpa.jpql.tools.resolver.DerivedDeclaration
-
- All Implemented Interfaces:
JPQLQueryDeclaration
public class DerivedDeclaration extends AbstractRangeDeclaration
ThisDerivedDeclaration
represents an identification variable declaration that was declared in theFROM
clause of aSELECT
subquery. The "root" object is not an entity name but a derived path expression.- Version:
- 2.5
- See Also:
IdentificationVariableDeclaration
- 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
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractRangeDeclaration
joins
-
Fields inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
baseExpression, declarationExpression, identificationVariable, rootPath
-
-
Constructor Summary
Constructors Constructor Description DerivedDeclaration()
Creates a newDerivedDeclaration
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSuperqueryVariableName()
IfCollectionMemberDeclaration.isDerived()
istrue
, then returns the identification variable used in the derived path expression that is defined in the superquery, otherwise returns an empty string.JPQLQueryDeclaration.Type
getType()
Determines the type this declaration represents.-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.AbstractRangeDeclaration
addJoin, getJoins, hasJoins
-
Methods inherited from class org.eclipse.persistence.jpa.jpql.tools.resolver.Declaration
getBaseExpression, getDeclarationExpression, getIdentificationVariable, getRootPath, getVariableName, toString
-
-
-
-
Method Detail
-
getSuperqueryVariableName
public java.lang.String getSuperqueryVariableName()
IfCollectionMemberDeclaration.isDerived()
istrue
, then returns the identification variable used in the derived path expression that is defined in the superquery, otherwise returns an empty string.- Returns:
- The identification variable from the superquery if the root path is a derived path expression
-
getType
public JPQLQueryDeclaration.Type getType()
Determines the type this declaration represents.- Returns:
- One of the possible types
-
-