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
This
DerivedDeclaration
represents an identification variable declaration that was
declared in the FROM
clause of a SELECT
subquery. The
"root" object is not an entity name but a derived path expression.- Since:
- 2.5
- Version:
- 2.5
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionIfCollectionMemberDeclaration.isDerived()
istrue
, then returns the identification variable used in the derived path expression that is defined in the superquery, otherwise returns an empty string.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
-
Constructor Details
-
DerivedDeclaration
public DerivedDeclaration()Creates a newDerivedDeclaration
.
-
-
Method Details
-
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
Description copied from interface:JPQLQueryDeclaration
Determines the type this declaration represents.- Returns:
- One of the possible types
-