Methods Summary |
---|
public int | executeUpdate()Execute an update or delete statement.
|
public java.util.List | getResultList()Execute a SELECT query and return the query results
as a List.
|
public java.lang.Object | getSingleResult()Execute a SELECT query that returns a single result.
|
public javax.persistence.Query | setFirstResult(int startPosition)Set the position of the first result to retrieve.
|
public javax.persistence.Query | setFlushMode(javax.persistence.FlushModeType flushMode)Set the flush mode type to be used for the query execution.
The flush mode type applies to the query regardless of the
flush mode type in use for the entity manager.
|
public javax.persistence.Query | setHint(java.lang.String hintName, java.lang.Object value)Set an implementation-specific hint.
If the hint name is not recognized, it is silently ignored.
|
public javax.persistence.Query | setMaxResults(int maxResult)Set the maximum number of results to retrieve.
|
public javax.persistence.Query | setParameter(int position, java.lang.Object value)Bind an argument to a positional parameter.
|
public javax.persistence.Query | setParameter(int position, java.util.Date value, javax.persistence.TemporalType temporalType)Bind an instance of java.util.Date to a positional parameter.
|
public javax.persistence.Query | setParameter(int position, java.util.Calendar value, javax.persistence.TemporalType temporalType)Bind an instance of java.util.Calendar to a positional parameter.
|
public javax.persistence.Query | setParameter(java.lang.String name, java.lang.Object value)Bind an argument to a named parameter.
|
public javax.persistence.Query | setParameter(java.lang.String name, java.util.Date value, javax.persistence.TemporalType temporalType)Bind an instance of java.util.Date to a named parameter.
|
public javax.persistence.Query | setParameter(java.lang.String name, java.util.Calendar value, javax.persistence.TemporalType temporalType)Bind an instance of java.util.Calendar to a named parameter.
|