Package | Description |
---|---|
javax.persistence |
Java Persistence is the API for the management for persistence and object/relational mapping.
|
Modifier and Type | Method and Description |
---|---|
<T> TypedQuery<T> |
EntityManager.createNamedQuery(String name,
Class<T> resultClass)
Create an instance of
TypedQuery for executing a
Java Persistence query language named query. |
<T> TypedQuery<T> |
EntityManager.createQuery(CriteriaQuery<T> criteriaQuery)
Create an instance of
TypedQuery for executing a
criteria query. |
<T> TypedQuery<T> |
EntityManager.createQuery(String qlString,
Class<T> resultClass)
Create an instance of
TypedQuery for executing a
Java Persistence query language statement. |
TypedQuery<X> |
TypedQuery.setFirstResult(int startPosition)
Set the position of the first result to retrieve.
|
TypedQuery<X> |
TypedQuery.setFlushMode(FlushModeType flushMode)
Set the flush mode type to be used for the query execution.
|
TypedQuery<X> |
TypedQuery.setHint(String hintName,
Object value)
Set a query property or hint.
|
TypedQuery<X> |
TypedQuery.setLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
|
TypedQuery<X> |
TypedQuery.setMaxResults(int maxResult)
Set the maximum number of results to retrieve.
|
TypedQuery<X> |
TypedQuery.setParameter(int position,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a positional
parameter. |
TypedQuery<X> |
TypedQuery.setParameter(int position,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a positional parameter. |
TypedQuery<X> |
TypedQuery.setParameter(int position,
Object value)
Bind an argument value to a positional parameter.
|
TypedQuery<X> |
TypedQuery.setParameter(Parameter<Calendar> param,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a Parameter object. |
TypedQuery<X> |
TypedQuery.setParameter(Parameter<Date> param,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a Parameter object. |
<T> TypedQuery<X> |
TypedQuery.setParameter(Parameter<T> param,
T value)
Bind the value of a
Parameter object. |
TypedQuery<X> |
TypedQuery.setParameter(String name,
Calendar value,
TemporalType temporalType)
Bind an instance of
java.util.Calendar to a named parameter. |
TypedQuery<X> |
TypedQuery.setParameter(String name,
Date value,
TemporalType temporalType)
Bind an instance of
java.util.Date to a named parameter. |
TypedQuery<X> |
TypedQuery.setParameter(String name,
Object value)
Bind an argument value to a named parameter.
|
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.