| javax.persistence.Query
Query | public interface Query (Code) | | The main application interface to the persistence context.
|
Method Summary | |
public int | executeUpdate() An update or delete query. | public List | getResultList() Executes a SELECT and return the results as a list. | public Object | getSingleResult() Returns the single result of a query. | public Query | setFirstResult(int startPosition) Sets the first result. | public Query | setFlushMode(FlushModeType flushMode) Sets the flush type. | public Query | setHint(String hintName, Object value) Sets an implementation-specific hint. | public Query | setMaxResults(int maxResult) Sets the maximum number of results to retrieve. | public Query | setParameter(String name, Object value) Binds a named parameter. | public Query | setParameter(String name, Date date, TemporalType type) Sets a date parameter. | public Query | setParameter(String name, Calendar date, TemporalType type) Sets a calendar parameter. | public Query | setParameter(int pos, Object value) Binds a position parameter. | public Query | setParameter(int pos, Date date, TemporalType type) Sets a date parameter. | public Query | setParameter(int pos, Calendar date, TemporalType type) Sets a calendar parameter. |
executeUpdate | public int executeUpdate()(Code) | | An update or delete query.
|
getResultList | public List getResultList()(Code) | | Executes a SELECT and return the results as a list.
|
getSingleResult | public Object getSingleResult()(Code) | | Returns the single result of a query.
|
setFirstResult | public Query setFirstResult(int startPosition)(Code) | | Sets the first result.
|
setMaxResults | public Query setMaxResults(int maxResult)(Code) | | Sets the maximum number of results to retrieve.
|
setParameter | public Query setParameter(int pos, Object value)(Code) | | Binds a position parameter.
|
|
|