EclipseLink 2.5.0, build 'v20130425-368d603' API Reference

org.eclipse.persistence.jpa.jpql.tools.spi.java
Class JavaQuery

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.tools.spi.java.JavaQuery
All Implemented Interfaces:
IQuery

public class JavaQuery
extends java.lang.Object
implements IQuery

The concrete implementation of IQuery that is wrapping the design-time representation of a JPQL query.

Version:
2.4
Author:
Pascal Filion
Since:
2.3

Constructor Summary
JavaQuery(IManagedTypeProvider provider, java.lang.CharSequence jpqlQuery)
          Creates a new JavaQuery.
 
Method Summary
 java.lang.String getExpression()
          Returns the string representation of the JPQL query.
 IManagedTypeProvider getProvider()
          Retrieves the provider of managed types.
 void setExpression(java.lang.CharSequence jpqlQuery)
          Sets the string representation of the JPQL query.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaQuery

public JavaQuery(IManagedTypeProvider provider,
                 java.lang.CharSequence jpqlQuery)
Creates a new JavaQuery.

Parameters:
provider - The provider of JPA managed types
jpqlQuery - The string representation of the JPQL query
Method Detail

getExpression

public java.lang.String getExpression()
Returns the string representation of the JPQL query.

Specified by:
getExpression in interface IQuery
Returns:
A non-null string representation of the JPQL query

getProvider

public IManagedTypeProvider getProvider()
Retrieves the provider of managed types.

Specified by:
getProvider in interface IQuery
Returns:
The object that has access to the application's managed types.

setExpression

public void setExpression(java.lang.CharSequence jpqlQuery)
Sets the string representation of the JPQL query.

Parameters:
jpqlQuery - The string representation of the JPQL query

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.5.0, build 'v20130425-368d603' API Reference