Interface VariableDeclarationStateObject
- All Superinterfaces:
StateObject
- All Known Implementing Classes:
AbstractIdentificationVariableDeclarationStateObject
,AbstractRangeVariableDeclarationStateObject
,CollectionMemberDeclarationStateObject
,DerivedPathIdentificationVariableDeclarationStateObject
,DerivedPathVariableDeclarationStateObject
,IdentificationVariableDeclarationStateObject
,RangeVariableDeclarationStateObject
This defines a variable declaration, which has a "root" object and an identification variable.
- Since:
- 2.4
- Version:
- 2.5
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetManagedType
(StateObject stateObject) Returns theIManagedType
for the given identification variable.Returns theIdentificationVariableStateObject
that are used by this state object.Methods inherited from interface org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject
accept, addPropertyChangeListener, children, decorate, findIdentificationVariable, getDeclaration, getDecorator, getExpression, getGrammar, getManagedTypeProvider, getParent, getQueryBuilder, getRoot, isDecorated, isEquivalent, removePropertyChangeListener, setParent, toString, toText
-
Method Details
-
getManagedType
Returns theIManagedType
for the given identification variable. The search does not traverse up the query hierarchy if this declaration is for a subquery.
In the above query, the managed type associated with the identification variable:SELECT e FROM Department d JOIN KEY(d.employees).addresses a
- d is "Department"
- a is "Address"
- Parameters:
stateObject
- TheStateObject
that should be an simple identification variable or an encapsulated identification variable with the identifierKEY
orVALUE
- Returns:
- The
IManagedType
representing the domain object declared by the given identification variable
-
identificationVariables
ListIterable<IdentificationVariableStateObject> identificationVariables()Returns theIdentificationVariableStateObject
that are used by this state object. It is possible more than one declaration exists, like a range variable declaration has also joins and join fetches.- Returns:
- The list of
IdentificationVariableStateObject
-