Skip navigation links
org.eclipse.persistence.jpa.internal.jpql
Class DefaultContentAssistProposals.Result
java.lang.Object
org.eclipse.persistence.jpa.internal.jpql.DefaultContentAssistProposals.Result
- All Implemented Interfaces:
- ResultQuery
- Enclosing class:
- DefaultContentAssistProposals
-
private final class DefaultContentAssistProposals.Result
- extends java.lang.Object
- implements ResultQuery
This contains the result of inserting a proposal into a JPQL query at a given position.
- See Also:
ContentAssistItems#buildEscapedQuery(String, String, int, boolean)
, ContentAssistItems#buildQuery(String, String, int, boolean)
Field Summary |
private java.lang.String |
jpqlQuery
The new JPQL query after insertion of the proposal. |
private int |
position
The position of the cursor within the new query. |
Method Summary |
int |
getPosition()
Returns the position of the cursor within the new query. |
java.lang.String |
getQuery()
Returns the new JPQL query after insertion of the choice. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
jpqlQuery
private java.lang.String jpqlQuery
- The new JPQL query after insertion of the proposal.
position
private int position
- The position of the cursor within the new query.
DefaultContentAssistProposals.Result
public DefaultContentAssistProposals.Result(java.lang.String jpqlQuery,
int position)
- Creates a new
Result
.
- Parameters:
jpqlQuery
- The new JPQL query after insertion of the proposal
position
- The position of the cursor within the new query
getPosition
public int getPosition()
- Returns the position of the cursor within the new query.
-
- Specified by:
getPosition
in interface ResultQuery
-
- Returns:
- The updated position of the cursor
getQuery
public java.lang.String getQuery()
- Returns the new JPQL query after insertion of the choice.
-
- Specified by:
getQuery
in interface ResultQuery
-
- Returns:
- The JPQL with the content assist item inserted into the original query
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
Skip navigation links