Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Hibernate developmental JSR 317 (Java Persistence API 2.0) contracts. Used to
allow incremental implementation of features on the way to full JPA 2.0 support.
// $Id: CriteriaQuery.java 17038 2009-07-08 10:58:24Z epbernard $
// EJB3 Specification Copyright 2004-2009 Sun Microsystems, Inc.
package javax.persistence.criteria;
import java.util.List;
import java.util.Set;
/**
* The CriteriaQuery interface defines functionality that is specific
* to top-level queries.
*/
public interface CriteriaQuery extends AbstractQuery {
/**
* Specify the item that is to be returned in the query result.
* Replaces the previously specified selection(s), if any.
* @param selection selection specifying the item that
* is to be returned in the query result
* @return the modified query
*/
CriteriaQuery select(Selection extends T> selection);
/**
* Specify the selection items that are to be returned in the
* query result.
* Replaces the previously specified selection(s), if any.
*
* The type of the result of the query execution depends on
* the specification of the type of the criteria query object
* created as well as the arguments to the multiselect method.
* An argument to the multiselect method must not be a tuple-
* or array-valued compound selection item.
* The semantics of this method are as follows:
*
* If the type of the criteria query is CriteriaQuery
* (i.e., a criteria query object created by either the
* createTupleQuery method or by passing a Tuple class argument
* to the createQuery method), a Tuple object corresponding to
* the arguments of the multiselect method will be instantiated
* and returned for each row that results from the query execution.
*
* If the type of the criteria query is CriteriaQuery for
* some user-defined class X (i.e., a criteria query object
* created by passing a X class argument to the createQuery
* method), then the arguments to the multiselect method will be
* passed to the X constructor and an instance of type X will be
* returned for each row.
*
* If the type of the criteria query is CriteriaQuery for
* some class X, an instance of type X[] will be returned for
* each row. The elements of the array will correspond to the
* arguments of the multiselect method.
*
* If the type of the criteria query is CriteriaQuery