SELECT
clause and a FROM clause.
SelectStatementStateObject, FromClauseStateObject, GroupByClauseStateObject, HavingClauseStateObject, SelectClauseStateObject, WhereClauseStateObject, AbstractSelectStatement
| Modifier and Type | Field and Description |
|---|---|
| private AbstractFromClauseStateObject | fromClause
The state object representing the |
| public static final String | GROUP_BY_CLAUSE_PROPERTY
Notify the state object representing the |
| private GroupByClauseStateObject | groupByClause
The state object representing the |
| public static final String | HAVING_CLAUSE_PROPERTY
Notify the state object representing the |
| private HavingClauseStateObject | havingClause
The state object representing the |
| private AbstractSelectClauseStateObject | selectClause
The state object representing the |
| public static final String | WHERE_CLAUSE_PROPERTY
Notify the state object representing the |
| private WhereClauseStateObject | whereClause
The state object representing the |
| Access | Constructor and Description |
|---|---|
| protected | AbstractSelectStatementStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection
declarationAdds a new collection declaration to the |
| public CollectionMemberDeclarationStateObject | Returns: TheCollectionMemberDeclarationStateObject representing the collection
declarationThe collection-valued path expression collectionValuedPath, String The variable defining the collection-valued path expression identificationVariable)Adds a new collection declaration to the |
| public GroupByClauseStateObject | |
| public GroupByClauseStateObject | Returns: TheGroupByClauseStateObjectThe fragment of the JPQL to parse that represents the group by items, the
fragment cannot start with jpqlFragment)GROUP BYAdds the |
| public HavingClauseStateObject | |
| public HavingClauseStateObject | Returns: TheHavingClauseStateObjectThe fragment of the JPQL to parse that represents the conditional expression,
the fragment cannot start with jpqlFragment)HAVINGAdds the |
| public IdentificationVariableDeclarationStateObject | Returns: TheStateObject representing the new range variable declarationAdds a new range variable declaration to the |
| public IdentificationVariableDeclarationStateObject | Returns: TheStateObject representing the new range variable declarationThe external form of the entity to add to the declaration list entity, String The unique identifier identifying the given identificationVariable)IEntityAdds to this select statement a new range variable declaration. |
| public IdentificationVariableDeclarationStateObject | Returns: TheStateObject representing the range variable declarationThe name of the entity entityName, String The unique identifier identifying the entity identificationVariable)Adds to this select statement a new range variable declaration. |
| public WhereClauseStateObject | |
| public WhereClauseStateObject | Returns: TheWhereClauseStateObjectThe fragment of the JPQL to parse that represents the conditional expression,
the fragment cannot start with jpqlFragment)WHEREAdds the |
| protected abstract AbstractFromClauseStateObject | Returns: A concrete instance ofAbstractFromClauseStateObjectCreates the state object representing the |
| protected abstract AbstractSelectClauseStateObject | Returns: A concrete instance ofAbstractSelectClauseStateObjectCreates the state object representing the |
| public ListIterable | Returns: The list ofVariableDeclarationStateObjectReturns the list of |
| public IdentificationVariableStateObject | findIdentificationVariable(String
The name of the identification variable to retrieve its state object identificationVariable)Overrides org. Implements org. IdentificationVariableStateObject representing the given identification
variable.
|
| public DeclarationStateObject | getDeclaration()
Overrides org. Implements org. |
| public AbstractSelectStatement | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public AbstractFromClauseStateObject | Returns: The state object representing theFROM clause, which is never
nullReturns the state object representing the |
| public GroupByClauseStateObject | Returns: Either the actual state object representing theGROUP BY clause or
null if it's not presentReturns the state object representing the |
| public HavingClauseStateObject | Returns: Either the actual state object representing theHAVING clause or
null if it's not presentReturns the state object representing the |
| public AbstractSelectClauseStateObject | Returns: Either the actual state object representing theSELECT clause,
which is never nullReturns the state object representing the |
| public WhereClauseStateObject | Returns: Either the actual state object representing theWHERE clause or
the null state object since null is never returnedReturns the state object representing the |
| public boolean | Returns: Either the actual state object representing theGROUP BY clause or
null if it's not presentReturns the state object representing the |
| public boolean | Returns: Either the actual state object representing theHAVING clause or
null if it's not presentReturns the state object representing the |
| public boolean | Returns: Either the actual state object representing theWHERE clause or
null if it's not presentReturns the state object representing the |
| public Iterable | Returns: The list ofIdentificationVariableStateObjectsReturns the |
| protected void | initialize()
Overrides org. |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public void | parseSelect(String
The portion of the query representing one or several select items jpqlFragment)Parses the given JPQL fragment and create the select item. |
| public void | |
| public void | |
| public void | |
| private void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| fromClause | back to summary |
|---|---|
| private AbstractFromClauseStateObject fromClause The state object representing the | |
| GROUP_BY_CLAUSE_PROPERTY | back to summary |
|---|---|
| public static final String GROUP_BY_CLAUSE_PROPERTY Notify the state object representing the | |
| groupByClause | back to summary |
|---|---|
| private GroupByClauseStateObject groupByClause The state object representing the | |
| HAVING_CLAUSE_PROPERTY | back to summary |
|---|---|
| public static final String HAVING_CLAUSE_PROPERTY Notify the state object representing the | |
| havingClause | back to summary |
|---|---|
| private HavingClauseStateObject havingClause The state object representing the | |
| selectClause | back to summary |
|---|---|
| private AbstractSelectClauseStateObject selectClause The state object representing the | |
| WHERE_CLAUSE_PROPERTY | back to summary |
|---|---|
| public static final String WHERE_CLAUSE_PROPERTY Notify the state object representing the | |
| whereClause | back to summary |
|---|---|
| private WhereClauseStateObject whereClause The state object representing the | |
| AbstractSelectStatementStateObject | back to summary |
|---|---|
| protected AbstractSelectStatementStateObject(StateObject parent) Creates a new
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| addCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addCollectionDeclaration() Adds a new collection declaration to the
| |
| addCollectionDeclaration | back to summary |
|---|---|
| public CollectionMemberDeclarationStateObject addCollectionDeclaration(String collectionValuedPath, String identificationVariable) Adds a new collection declaration to the
| |
| addGroupByClause | back to summary |
|---|---|
| public GroupByClauseStateObject addGroupByClause() Adds the
| |
| addGroupByClause | back to summary |
|---|---|
| public GroupByClauseStateObject addGroupByClause(String jpqlFragment) Adds the
| |
| addHavingClause | back to summary |
|---|---|
| public HavingClauseStateObject addHavingClause() Adds the
| |
| addHavingClause | back to summary |
|---|---|
| public HavingClauseStateObject addHavingClause(String jpqlFragment) Adds the
| |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration() Adds a new range variable declaration to the
| |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration(IEntity entity, String identificationVariable) Adds to this select statement a new range variable declaration.
| |
| addRangeDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclarationStateObject addRangeDeclaration(String entityName, String identificationVariable) Adds to this select statement a new range variable declaration.
| |
| addWhereClause | back to summary |
|---|---|
| public WhereClauseStateObject addWhereClause() Adds the
| |
| addWhereClause | back to summary |
|---|---|
| public WhereClauseStateObject addWhereClause(String jpqlFragment) Adds the
| |
| buildFromClause | back to summary |
|---|---|
| protected abstract AbstractFromClauseStateObject buildFromClause() Creates the state object representing the
| |
| buildSelectClause | back to summary |
|---|---|
| protected abstract AbstractSelectClauseStateObject buildSelectClause() Creates the state object representing the
| |
| declarations | back to summary |
|---|---|
| public ListIterable Returns the list of Example:
| |
| findIdentificationVariable | back to summary |
|---|---|
| public IdentificationVariableStateObject findIdentificationVariable(String identificationVariable) Overrides org. Implements org. Doc from org. Returns the
| |
| getDeclaration | back to summary |
|---|---|
| public DeclarationStateObject getDeclaration() Overrides org. Implements org. Doc from org. Returns the declaration clause which defines the domain of the query by declaring identification variables.
| |
| getExpression | back to summary |
|---|---|
| public AbstractSelectStatement getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getFromClause | back to summary |
|---|---|
| public AbstractFromClauseStateObject getFromClause() Returns the state object representing the
| |
| getGroupByClause | back to summary |
|---|---|
| public GroupByClauseStateObject getGroupByClause() Returns the state object representing the
| |
| getHavingClause | back to summary |
|---|---|
| public HavingClauseStateObject getHavingClause() Returns the state object representing the
| |
| getSelectClause | back to summary |
|---|---|
| public AbstractSelectClauseStateObject getSelectClause() Returns the state object representing the
| |
| getWhereClause | back to summary |
|---|---|
| public WhereClauseStateObject getWhereClause() Returns the state object representing the
| |
| hasGroupByClause | back to summary |
|---|---|
| public boolean hasGroupByClause() Returns the state object representing the
| |
| hasHavingClause | back to summary |
|---|---|
| public boolean hasHavingClause() Returns the state object representing the
| |
| hasWhereClause | back to summary |
|---|---|
| public boolean hasWhereClause() Returns the state object representing the
| |
| identificationVariables | back to summary |
|---|---|
| public Iterable Returns the Example:
| |
| initialize | back to summary |
|---|---|
| protected void initialize() Overrides org. Doc from org. Initializes this state object.
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| parseSelect | back to summary |
|---|---|
| public void parseSelect(String jpqlFragment) Parses the given JPQL fragment and create the select item. For the top-level query, the fragment can contain several select items but for a subquery, it can represent only one.
| |
| removeGroupByClause | back to summary |
|---|---|
| public void removeGroupByClause() Removes the | |
| removeHavingClause | back to summary |
|---|---|
| public void removeHavingClause() Removes the | |
| removeWhereClause | back to summary |
|---|---|
| public void removeWhereClause() Removes the | |
| setGroupByClause | back to summary |
|---|---|
| private void setGroupByClause(GroupByClauseStateObject groupByClause) | |
| setHavingClause | back to summary |
|---|---|
| private void setHavingClause(HavingClauseStateObject havingClause) | |
| setWhereClause | back to summary |
|---|---|
| private void setWhereClause(WhereClauseStateObject whereClause) | |
| toggleGroupByClause | back to summary |
|---|---|
| public void toggleGroupByClause() Either adds or removes the state object representing the | |
| toggleHavingClause | back to summary |
|---|---|
| public void toggleHavingClause() Either adds or removes the state object representing the | |
| toggleWhereClause | back to summary |
|---|---|
| public void toggleWhereClause() Either adds or removes the state object representing the | |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |