JPQLQueryDeclaration represents either an identification variable declaration or a
collection member declaration. For a subquery, the declaration can be a derived path expression.
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | JPQLQueryDeclaration.Type
This enum type defines the various types of declarations supported by both the JPA functional specification and EclipseLink. |
| Modifier and Type | Method and Description |
|---|---|
| public Expression | Returns: Either the range variable declaration or the collection-valued path expressionReturns the range variable declaration if this is a range declaration otherwise the collection-valued path expression when this is a collection member declaration. |
| public Expression | Returns: The root of the declaration expressionReturns the declaration expression, which is either an |
| public List | Returns: The JOIN expressions defined with this declaration or an empty list if this declaration does not support itReturns the |
| public JPQLQueryDeclaration. | |
| public String | Returns: The identification variable or an empty string if none was definedReturns the identification variable name that is defining either the abstract schema name or the collection-valued path expression |
| public boolean | Returns: true if at least one JOIN expression was parsed;
otherwise falseDetermines whether the declaration contains JOIN expressions. |
| getBaseExpression | back to summary |
|---|---|
| public 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.
| |
| getDeclarationExpression | back to summary |
|---|---|
| public Expression getDeclarationExpression() Returns the declaration expression, which is either an
| |
| getJoins | back to summary |
|---|---|
| public List Returns the | |
| getType | back to summary |
|---|---|
| public JPQLQueryDeclaration. Determines the type this declaration represents.
| |
| getVariableName | back to summary |
|---|---|
| public String getVariableName() Returns the identification variable name that is defining either the abstract schema name or the collection-valued path expression
| |
| hasJoins | back to summary |
|---|---|
| public boolean hasJoins() Determines whether the declaration contains JOIN expressions. This can be
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final JPQLQueryDeclaration. | CLASS_NAME
Indicates the "root" object maps a fully qualified class name. |
| public static final JPQLQueryDeclaration. | COLLECTION
Indicates the "root" object maps a collection-valued path expression. |
| public static final JPQLQueryDeclaration. | DERIVED
Indicates the "root" object is a derived path expression where the identification variable is declared in the super query, otherwise it's an entity name. |
| public static final JPQLQueryDeclaration. | RANGE
Indicates the "root" object maps to an entity. |
| private boolean | range
Flag used to determine if the type represents a range variable declaration. |
| public static final JPQLQueryDeclaration. | SUBQUERY
Indicates the "root" object maps to a subquery. |
| public static final JPQLQueryDeclaration. | TABLE
Indicates the "root" object maps directly to a database table. |
| public static final JPQLQueryDeclaration. | UNKNOWN
Indicates the "root" object maps to an unknown expression. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this constant represents a range variable declaration;
false otherwiseDetermines whether this type represents a range variable declaration. |
| public static JPQLQueryDeclaration. | |
| public static JPQLQueryDeclaration. |
| CLASS_NAME | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps a fully qualified class name. | |
| COLLECTION | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps a collection-valued path expression. | |
| DERIVED | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object is a derived path expression where the identification variable is declared in the super query, otherwise it's an entity name. | |
| RANGE | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps to an entity. | |
| range | back to summary |
|---|---|
| private boolean range Flag used to determine if the type represents a range variable declaration. | |
| SUBQUERY | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps to a subquery. | |
| TABLE | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps directly to a database table. | |
| UNKNOWN | back to summary |
|---|---|
| public static final JPQLQueryDeclaration. Indicates the "root" object maps to an unknown expression. | |
| Type | back to summary |
|---|---|
| private Type(boolean range) | |
| isRange | back to summary |
|---|---|
| public boolean isRange() Determines whether this type represents a range variable declaration.
| |
| valueOf | back to summary |
|---|---|
| public static JPQLQueryDeclaration. | |
| values | back to summary |
|---|---|
| public static JPQLQueryDeclaration. | |