public static class DeclarationResolver.Declaration
extends java.lang.Object
Declaration represents either an identification variable declaration or a
collection member declaration.| Constructor and Description |
|---|
DeclarationResolver.Declaration() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAbstractSchemaName()
Returns the abstract schema name, which is the entity name.
|
Expression |
getBaseExpression()
Returns the range variable declaration if this is a range declaration otherwise the
collection-valued path expression when this is a collection member declaration.
|
Expression |
getDeclarationExpression()
Returns the declaration expression, which is either an
IdentificationVariableDeclaration
or a CollectionMemberDeclaration when part of a FROM clause, otherwise it's
either the DeleteClause or the UpdateClause. |
java.util.List<java.util.Map.Entry<Join,java.lang.String>> |
getJoinEntries()
Returns the JOIN expressions mapped to their identification variables.
|
java.util.List<JoinFetch> |
getJoinFetches()
Returns the JOIN FETCH expressions that were part of the range variable declaration
in the ordered they were parsed.
|
java.util.Set<java.lang.String> |
getJoinIdentificationVariables()
Returns the identification variables that are defined in the JOIN expressions.
|
java.util.Collection<Join> |
getJoins()
Returns the JOIN expressions that were part of the range variable declaration in the
ordered they were parsed.
|
java.lang.String |
getVariableName()
Returns the identification variable name that is defining either the abstract schema name
or the collection-valued path expression
|
boolean |
hasJoinFetches()
Determines whether the declaration contains JOIN FETCH expressions.
|
boolean |
hasJoins()
Determines whether the declaration contains JOIN expressions.
|
boolean |
isRange()
Determines whether this
DeclarationResolver.Declaration represents a range identification variable
declaration, example: "Employee e". |
java.lang.String |
toString() |
public java.lang.String getAbstractSchemaName()
null if this
DeclarationResolver.Declaration is a collection member declarationpublic Expression getBaseExpression()
public Expression getDeclarationExpression()
IdentificationVariableDeclaration
or a CollectionMemberDeclaration when part of a FROM clause, otherwise it's
either the DeleteClause or the UpdateClause.public java.util.List<java.util.Map.Entry<Join,java.lang.String>> getJoinEntries()
public java.util.List<JoinFetch> getJoinFetches()
public java.util.Set<java.lang.String> getJoinIdentificationVariables()
public java.util.Collection<Join> getJoins()
public java.lang.String getVariableName()
public boolean hasJoinFetches()
true only when isRange() returns true. A collection
member declaration does not have JOIN FETCH expressions.true if at least one JOIN FETCH expression was parsed;
otherwise falsepublic boolean hasJoins()
true only when isRange() returns true. A collection
member declaration does not have JOIN expressions.true if at least one JOIN expression was parsed;
otherwise falsepublic boolean isRange()
DeclarationResolver.Declaration represents a range identification variable
declaration, example: "Employee e".
Note: There is a case where this can be true but the range expression is not
an abstract schema name but a derived path. It only happens in a subquery defined in the
WHERE clause of an UPDATE or DELETE statement because the
identification variable is optional.
true if the declaration is over an abstract schema name; false
if it's over a collection-valued path expressionpublic java.lang.String toString()
toString in class java.lang.ObjectEclipseLink 2.3.2, "build v20111125-r10461" API Reference