org.apache.openjpa.persistence.criteria
Interface OpenJPACriteriaQuery<T>

Type Parameters:
T - type of result returned by this query
All Superinterfaces:
AbstractQuery<T>, CriteriaQuery<T>
All Known Implementing Classes:
CriteriaQueryImpl

public interface OpenJPACriteriaQuery<T>
extends CriteriaQuery<T>

OpenJPA-specific extension to JPA 2.0 Criteria Query API.

Since:
2.0.0
Author:
Pinaki Poddar

Method Summary
 OpenJPACriteriaQuery<T> compile()
          Compile the query.
 String toCQL()
          Convert the query to a JPQL-like string.
 
Methods inherited from interface javax.persistence.criteria.CriteriaQuery
distinct, getOrderList, getParameters, groupBy, groupBy, having, having, multiselect, multiselect, orderBy, orderBy, select, where, where
 
Methods inherited from interface javax.persistence.criteria.AbstractQuery
from, from, getGroupList, getGroupRestriction, getRestriction, getResultType, getRoots, getSelection, isDistinct, subquery
 

Method Detail

toCQL

String toCQL()
Convert the query to a JPQL-like string. The conversion of Criteria Query may not be an exact JPQL string.

Returns:
a JPQL-like string.

compile

OpenJPACriteriaQuery<T> compile()
Compile the query.

Returns:
the same instance compiled.


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.