| Package | Description | 
|---|---|
| javax.persistence | Java Persistence is the API for the management for persistence and object/relational mapping. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | StoredProcedureQueryInterface used to control stored procedure query execution. | 
| interface  | TypedQuery<X>Interface used to control the execution of typed queries. | 
| Modifier and Type | Method and Description | 
|---|---|
| Query | EntityManager. createNamedQuery(String name)Create an instance of  Queryfor executing a named query
 (in the Java Persistence query language or in native SQL). | 
| Query | EntityManager. createNativeQuery(String sqlString)Create an instance of  Queryfor executing
 a native SQL statement, e.g., for update or delete. | 
| Query | EntityManager. createNativeQuery(String sqlString,
                 Class resultClass)Create an instance of  Queryfor executing
 a native SQL query. | 
| Query | EntityManager. createNativeQuery(String sqlString,
                 String resultSetMapping)Create an instance of  Queryfor executing
 a native SQL query. | 
| Query | EntityManager. createQuery(CriteriaDelete deleteQuery)Create an instance of  Queryfor executing a criteria
 delete query. | 
| Query | EntityManager. createQuery(CriteriaUpdate updateQuery)Create an instance of  Queryfor executing a criteria
 update query. | 
| Query | EntityManager. createQuery(String qlString)Create an instance of  Queryfor executing a
 Java Persistence query language statement. | 
| Query | QueryTimeoutException. getQuery()Returns the query that caused this exception. | 
| Query | Query. setFirstResult(int startPosition)Set the position of the first result to retrieve. | 
| Query | Query. setFlushMode(FlushModeType flushMode)Set the flush mode type to be used for the query execution. | 
| Query | Query. setHint(String hintName,
       Object value)Set a query property or hint. | 
| Query | Query. setLockMode(LockModeType lockMode)Set the lock mode type to be used for the query execution. | 
| Query | Query. setMaxResults(int maxResult)Set the maximum number of results to retrieve. | 
| Query | Query. setParameter(int position,
            Calendar value,
            TemporalType temporalType)Bind an instance of  java.util.Calendarto a positional
 parameter. | 
| Query | Query. setParameter(int position,
            Date value,
            TemporalType temporalType)Bind an instance of  java.util.Dateto a positional parameter. | 
| Query | Query. setParameter(int position,
            Object value)Bind an argument value to a positional parameter. | 
| Query | Query. setParameter(Parameter<Calendar> param,
            Calendar value,
            TemporalType temporalType)Bind an instance of  java.util.Calendarto aParameterobject. | 
| Query | Query. setParameter(Parameter<Date> param,
            Date value,
            TemporalType temporalType)Bind an instance of  java.util.Dateto aParameterobject. | 
| <T> Query | Query. setParameter(Parameter<T> param,
            T value)Bind the value of a  Parameterobject. | 
| Query | Query. setParameter(String name,
            Calendar value,
            TemporalType temporalType)Bind an instance of  java.util.Calendarto a named parameter. | 
| Query | Query. setParameter(String name,
            Date value,
            TemporalType temporalType)Bind an instance of  java.util.Dateto a named parameter. | 
| Query | Query. setParameter(String name,
            Object value)Bind an argument value to a named parameter. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | EntityManagerFactory. addNamedQuery(String name,
             Query query)Define the query, typed query, or stored procedure query as
 a named query such that future query objects can be created
 from it using the  createNamedQueryorcreateNamedStoredProcedureQuerymethod. | 
| Constructor and Description | 
|---|
| QueryTimeoutException(Query query)Constructs a new  QueryTimeoutExceptionexception 
 with the specified query. | 
| QueryTimeoutException(String message,
                     Throwable cause,
                     Query query)Constructs a new  QueryTimeoutExceptionexception 
 with the specified detail message, cause, and query. | 
Copyright © 2017. All Rights Reserved.