Example usage for Java javax.persistence Query fields, constructors, methods, implement or subclass
The text is from its open source code.
int | executeUpdate() Execute an update or delete statement. |
int | getFirstResult() The position of the first result the query object was set to retrieve. |
Map | getHints() Get the properties and hints and associated values that are in effect for the query instance. |
int | getMaxResults() The maximum number of results the query object was set to retrieve. |
Set | getParameters() Get the parameter objects corresponding to the declared parameters of the query. |
T | getParameterValue(Parameter Return the input value bound to the parameter. |
Object | getParameterValue(String name) Return the input value bound to the named parameter. |
Object | getParameterValue(int position) Return the input value bound to the positional parameter. |
List | getResultList() Execute a SELECT query and return the query results as an untyped List. |
Object | getSingleResult() Execute a SELECT query that returns a single untyped result. |
Query | setFirstResult(int startPosition) Set the position of the first result to retrieve. |
Query | setFlushMode(FlushModeType flushMode) Set the flush mode type to be used for the query execution. |
Query | setHint(String hintName, Object value) Set a query property or hint. |
Query | setLockMode(LockModeType lockMode) Set the lock mode type to be used for the query execution. |
Query | setMaxResults(int maxResult) Set the maximum number of results to retrieve. |
Query | setParameter(Parameter Bind the value of a Parameter object. |
Query | setParameter(String name, Object value) Bind an argument value to a named parameter. |
Query | setParameter(int position, Object value) Bind an argument value to a positional parameter. |
Query | setParameter(Parameter Bind an instance of java.util.Calendar to a Parameter object. |
Query | setParameter(Parameter Bind an instance of java.util.Date to a Parameter object. |
Query | setParameter(String name, Calendar value, TemporalType temporalType) Bind an instance of java.util.Calendar to a named parameter. |
Query | setParameter(String name, Date value, TemporalType temporalType) Bind an instance of java.util.Date to a named parameter. |
Query | setParameter(int position, Calendar value, TemporalType temporalType) Bind an instance of java.util.Calendar to a positional parameter. |
Query | setParameter(int position, Date value, TemporalType temporalType) Bind an instance of java.util.Date 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. |