FROM clause
of a query. All identification variables must be declared in the FROM clause.
Identification variables cannot be declared in other clauses. An identification variable must not
be a reserved identifier or have the same name as any entity in the same persistence unit:
Identification variables are case insensitive. An identification variable evaluates to a value of
the type of the expression used in declaring the variable.
BNF: identification_variable_declaration ::= range_variable_declaration { join | fetch_join }*
IdentificationVariableDeclaration
| Access | Constructor and Description |
|---|---|
| public | IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject
The parent of this state object, which cannot be parent, IEntity nullThe external form of the entity to add to the declaration list entity, String The unique identifier identifying the abstract schema name identificationVariable)Creates a new |
| public | IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject
The parent of this state object, which cannot be parent, String nullThe name of the entity name entityName, String The new identification variable identificationVariable)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public JoinStateObject | Returns: A newJoinStateObjectThe join association path expression path)Adds a new |
| public JoinStateObject | Returns: A newJoinStateObjectThe join association path expression path)Adds a new |
| public JoinStateObject | Returns: A newJoinStateObjectOne of the joining types: joinFetchType, ListIterator<String> LEFT JOIN FETCH, LEFT
OUTER JOIN FETCH, INNER JOIN FETCH or JOIN FETCHThe join association path expression paths)Adds a new |
| public JoinStateObject | Returns: A newJoinStateObjectOne of the joining types: joinFetchType, String LEFT JOIN FETCH, LEFT
OUTER JOIN FETCH, INNER JOIN FETCH or JOIN FETCHThe join association path expression path)Adds a new |
| public JoinStateObject | Returns: A newJoinStateObjectOne of the joining types: joinFetchType)LEFT JOIN FETCH, LEFT
OUTER JOIN FETCH, INNER JOIN FETCH or JOIN FETCHAdds a new |
| public JoinStateObject | Returns: A newJoinStateObjectThe join association path expression path)Adds a new |
| public JoinStateObject | Returns: A newJoinStateObjectThe join association path expression path)Adds a new |
| protected AbstractRangeVariableDeclarationStateObject | |
| public IEntity | |
| public String | Returns: The name of the entityReturns the name of the entity for which it is used as the "root" of the declaration. |
| public IManagedType | getManagedType(StateObject
The stateObject)StateObject that should be an simple identification variable or
an encapsulated identification variable with the identifier KEY or
VALUEImplements org. IManagedType for the given identification variable.
|
| public RangeVariableDeclarationStateObject | getRangeVariableDeclaration()
Returns the
StateObject representing the range variable declaration portion.
|
| public AbstractSchemaNameStateObject | getRootStateObject()
Returns the
StateObject representing the "root" for objects which may not be
reachable by navigation.
|
| protected String | listName()
Returns the name that is uniquely identifying the list.
|
| public void | |
| public void | setEntityName(String
The name of the entity entityName)Sets the name of the abstract schema, which is the name of the entity. |
| IdentificationVariableDeclarationStateObject | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject parent) Creates a new
| |
| IdentificationVariableDeclarationStateObject | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject parent, IEntity entity, String identificationVariable) Creates a new
| |
| IdentificationVariableDeclarationStateObject | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject(AbstractFromClauseStateObject parent, String entityName, String identificationVariable) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addInnerJoinFetch | back to summary |
|---|---|
| public JoinStateObject addInnerJoinFetch(String path) Adds a new
| |
| addJoinFetch | back to summary |
|---|---|
| public JoinStateObject addJoinFetch(String path) Adds a new
| |
| addJoinFetch | back to summary |
|---|---|
| public JoinStateObject addJoinFetch(String joinFetchType, ListIterator<String> paths) Adds a new
| |
| addJoinFetch | back to summary |
|---|---|
| public JoinStateObject addJoinFetch(String joinFetchType, String path) Adds a new
| |
| addJoinFetchType | back to summary |
|---|---|
| public JoinStateObject addJoinFetchType(String joinFetchType) Adds a new
| |
| addLeftJoinFetch | back to summary |
|---|---|
| public JoinStateObject addLeftJoinFetch(String path) Adds a new
| |
| addLeftOuterJoinFetch | back to summary |
|---|---|
| public JoinStateObject addLeftOuterJoinFetch(String path) Adds a new
| |
| buildRangeVariableDeclarationStateObject | back to summary |
|---|---|
| protected AbstractRangeVariableDeclarationStateObject buildRangeVariableDeclarationStateObject() Implements abstract org. Creates
| |
| getEntity | back to summary |
|---|---|
| public IEntity getEntity() Returns the actual external form representing the | |
| getEntityName | back to summary |
|---|---|
| public String getEntityName() Returns the name of the entity for which it is used as the "root" of the declaration.
| |
| getManagedType | back to summary |
|---|---|
| public IManagedType getManagedType(StateObject stateObject) Implements org. Doc from org. Returns the
In the above query, the managed type associated with the identification variable:
| |
| getRangeVariableDeclaration | back to summary |
|---|---|
| public RangeVariableDeclarationStateObject getRangeVariableDeclaration() Returns the
| |
| getRootStateObject | back to summary |
|---|---|
| public AbstractSchemaNameStateObject getRootStateObject() Returns the
| |
| listName | back to summary |
|---|---|
| protected String listName() Doc from org. Returns the name that is uniquely identifying the list. | |
| setEntity | back to summary |
|---|---|
| public void setEntity(IEntity entity) Sets the | |
| setEntityName | back to summary |
|---|---|
| public void setEntityName(String entityName) Sets the name of the abstract schema, which is the name of the entity.
| |