Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class DefaultContentAssistProposals.Result

java.lang.Object
  extended by 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.

 

Constructor Summary
DefaultContentAssistProposals.Result(java.lang.String jpqlQuery, int position)
          Creates a new Result.

 

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

 

Field Detail

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.

Constructor Detail

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

Method Detail

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

Copyright © 1998, 2012, Oracle. All Rights Reserved.