Example usage for Java javax.persistence TypedQuery fields, constructors, methods, implement or subclass
The text is from its open source code.
int | executeUpdate() Execute an update or delete statement. |
Parameter> | getParameter(String name) Get the parameter object corresponding to the declared parameter of the given name. |
Set | getParameters() Get the parameter objects corresponding to the declared parameters of the query. |
List | getResultList() Execute a SELECT query and return the query results as a typed List. |
X | getSingleResult() Execute a SELECT query that returns a single result. |
TypedQuery | setFirstResult(int startPosition) Set the position of the first result to retrieve. |
TypedQuery | setFlushMode(FlushModeType flushMode) Set the flush mode type to be used for the query execution. |
TypedQuery | setHint(String hintName, Object value) Set a query property or hint. |
TypedQuery | setLockMode(LockModeType lockMode) Set the lock mode type to be used for the query execution. |
TypedQuery | setMaxResults(int maxResult) Set the maximum number of results to retrieve. |
TypedQuery | setParameter(Parameter Bind the value of a Parameter object. |
TypedQuery | setParameter(String name, Object value) Bind an argument value to a named parameter. |
TypedQuery | setParameter(int position, Object value) Bind an argument value to a positional parameter. |
String | toString() Returns a string representation of the object. |
T | unwrap(Class Return an object of the specified type to allow access to the provider-specific API. |