Package | Description |
---|---|
javax.persistence |
Java Persistence is the API for the management for persistence and object/relational mapping.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
StoredProcedureQuery |
Interface used to control stored procedure query execution.
|
interface |
TypedQuery<X> |
Interface used to control the execution of typed queries.
|
Modifier and Type | Method | Description |
---|---|---|
Query |
EntityManager.createNamedQuery(java.lang.String name) |
Create an instance of
Query for executing a named query
(in the Java Persistence query language or in native SQL). |
Query |
EntityManager.createNativeQuery(java.lang.String sqlString) |
Create an instance of
Query for executing
a native SQL statement, e.g., for update or delete. |
Query |
EntityManager.createNativeQuery(java.lang.String sqlString,
java.lang.Class resultClass) |
Create an instance of
Query for executing
a native SQL query. |
Query |
EntityManager.createNativeQuery(java.lang.String sqlString,
java.lang.String resultSetMapping) |
Create an instance of
Query for executing
a native SQL query. |
Query |
EntityManager.createQuery(java.lang.String qlString) |
Create an instance of
Query for executing a
Java Persistence query language statement. |
Query |
EntityManager.createQuery(CriteriaDelete deleteQuery) |
Create an instance of
Query for executing a criteria
delete query. |
Query |
EntityManager.createQuery(CriteriaUpdate updateQuery) |
Create an instance of
Query for executing a criteria
update query. |
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(java.lang.String hintName,
java.lang.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,
java.lang.Object value) |
Bind an argument value to a positional parameter.
|
Query |
Query.setParameter(int position,
java.util.Calendar value,
TemporalType temporalType) |
Bind an instance of
java.util.Calendar to a positional
parameter. |
Query |
Query.setParameter(int position,
java.util.Date value,
TemporalType temporalType) |
Bind an instance of
java.util.Date to a positional parameter. |
Query |
Query.setParameter(java.lang.String name,
java.lang.Object value) |
Bind an argument value to a named parameter.
|
Query |
Query.setParameter(java.lang.String name,
java.util.Calendar value,
TemporalType temporalType) |
Bind an instance of
java.util.Calendar to a named parameter. |
Query |
Query.setParameter(java.lang.String name,
java.util.Date value,
TemporalType temporalType) |
Bind an instance of
java.util.Date to a named parameter. |
Query |
Query.setParameter(Parameter<java.util.Calendar> param,
java.util.Calendar value,
TemporalType temporalType) |
Bind an instance of
java.util.Calendar to a Parameter object. |
Query |
Query.setParameter(Parameter<java.util.Date> param,
java.util.Date value,
TemporalType temporalType) |
Bind an instance of
java.util.Date to a Parameter object. |
<T> Query |
Query.setParameter(Parameter<T> param,
T value) |
Bind the value of a
Parameter object. |
Modifier and Type | Method | Description |
---|---|---|
void |
EntityManagerFactory.addNamedQuery(java.lang.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
createNamedQuery or
createNamedStoredProcedureQuery method. |
Constructor | Description |
---|---|
QueryTimeoutException(java.lang.String message,
java.lang.Throwable cause,
Query query) |
Constructs a new
QueryTimeoutException exception
with the specified detail message, cause, and query. |
QueryTimeoutException(Query query) |
Constructs a new
QueryTimeoutException exception
with the specified query. |
Copyright © 2018. All rights reserved.