Dali Provisional API
Release 3.2

org.eclipse.jpt.jpa.core.jpql.spi
Class JpaQuery

java.lang.Object
  extended by org.eclipse.jpt.jpa.core.jpql.spi.JpaQuery

public class JpaQuery
extends Object

The concrete implementation of IQuery that is wrapping the design-time representation of a JPQL query. 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.

Since:
3.0

Constructor Summary
JpaQuery(IManagedTypeProvider provider, NamedQuery query)
          Creates a new JpaQuery.
JpaQuery(IManagedTypeProvider provider, NamedQuery query, String actualQuery)
          Creates a new JpaQuery.
 
Method Summary
 String getExpression()
          
 IManagedTypeProvider getProvider()
          
protected  NamedQuery getQuery()
          Returns the encapsulated NamedQuery, which is the actual object.
protected  void initialize(IManagedTypeProvider provider, NamedQuery query, String actualQuery)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JpaQuery

public JpaQuery(IManagedTypeProvider provider,
                NamedQuery query)
Creates a new JpaQuery.

Parameters:
provider - The provider of managed types
query - The model object of the JPQL query

JpaQuery

public JpaQuery(IManagedTypeProvider provider,
                NamedQuery query,
                String actualQuery)
Creates a new JpaQuery.

Parameters:
provider - The provider of managed types
query - The model object of the JPQL query
actualQuery - The actual JPQL query, which can differ from the one owned by the model object, which happens when the model is out of sync because it has not been updated yet
Method Detail

getExpression

public String getExpression()


getProvider

public IManagedTypeProvider getProvider()


getQuery

protected NamedQuery getQuery()
Returns the encapsulated NamedQuery, which is the actual object.

Returns:
The design-time representation of a JPQL query

initialize

protected void initialize(IManagedTypeProvider provider,
                          NamedQuery query,
                          String actualQuery)

toString

public String toString()

Overrides:
toString in class Object

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.