|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) E28847-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.DeclarationResolver.Declaration
public static class DeclarationResolver.Declaration
A Declaration
represents either an identification variable declaration or a collection member declaration.
Field Summary | |
---|---|
(package private) java.lang.String |
abstractSchemaName The abstract schema name, which is the entity name or null if this DeclarationResolver.Declaration is a collection member declaration. |
(package private) Expression |
baseExpression Either the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration. |
(package private) Expression |
declarationExpression 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 . |
(package private) IdentificationVariable |
identificationVariable The identification variable used to declare an abstract schema name or a collection-valued path expression. |
(package private) java.util.List<JoinFetch> |
joinFetches The list of JOIN FETCH expressions that are declared in the same declaration than the range variable declaration. |
(package private) java.util.Set<java.lang.String> |
joinIdentificationVariables The identification variables that are defined in the JOIN expressions. |
(package private) java.util.Map<Join,IdentificationVariable> |
joins The list of JOIN expressions that are declared in the same declaration than the range variable declaration. |
(package private) boolean |
rangeDeclaration Flag used to determine if this declaration is for a range variable declaration ( true ) or for a collection member declaration (false ). |
Constructor Summary | |
---|---|
DeclarationResolver.Declaration() |
Method Summary | |
---|---|
private void |
addJoin(Join join, IdentificationVariable identificationVariable) |
private void |
addJoinFetch(JoinFetch joinFetch) |
private java.util.Set<java.lang.String> |
buildJoinIdentificationVariables() |
private java.util.Map.Entry<Join,java.lang.String> |
buildMapEntry(java.util.Map.Entry<Join,IdentificationVariable> entry) |
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". |
private void |
lockData() Make sure the list of JOIN expressions and the map of JOIN FETCHS expressions can not be modified. |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
java.lang.String abstractSchemaName
null
if this DeclarationResolver.Declaration
is a collection member declaration.Expression baseExpression
Expression declarationExpression
IdentificationVariableDeclaration
or a CollectionMemberDeclaration
when part of a FROM clause, otherwise it's either the DeleteClause
or the UpdateClause
.IdentificationVariable identificationVariable
java.util.List<JoinFetch> joinFetches
java.util.Set<java.lang.String> joinIdentificationVariables
java.util.Map<Join,IdentificationVariable> joins
boolean rangeDeclaration
true
) or for a collection member declaration (false
).Constructor Detail |
---|
public DeclarationResolver.Declaration()
Method Detail |
---|
private void addJoin(Join join, IdentificationVariable identificationVariable)
private void addJoinFetch(JoinFetch joinFetch)
private java.util.Set<java.lang.String> buildJoinIdentificationVariables()
private java.util.Map.Entry<Join,java.lang.String> buildMapEntry(java.util.Map.Entry<Join,IdentificationVariable> entry)
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 false
public 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 false
public 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 expressionprivate void lockData()
public java.lang.String toString()
toString
in class java.lang.Object
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |