Java javax.persistence Query fields, constructors, methods, implement or subclass

Example usage for Java javax.persistence Query fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.persistence Query.

The text is from its open source code.

Implementation

javax.persistence.Query has the following implementations.
Click this link to see all its implementation.

Method

intexecuteUpdate()
Execute an update or delete statement.
intgetFirstResult()
The position of the first result the query object was set to retrieve.
MapgetHints()
Get the properties and hints and associated values that are in effect for the query instance.
intgetMaxResults()
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.
TgetParameterValue(Parameter param)
Return the input value bound to the parameter.
ObjectgetParameterValue(String name)
Return the input value bound to the named parameter.
ObjectgetParameterValue(int position)
Return the input value bound to the positional parameter.
ListgetResultList()
Execute a SELECT query and return the query results as an untyped List.
ObjectgetSingleResult()
Execute a SELECT query that returns a single untyped result.
QuerysetFirstResult(int startPosition)
Set the position of the first result to retrieve.
QuerysetFlushMode(FlushModeType flushMode)
Set the flush mode type to be used for the query execution.
QuerysetHint(String hintName, Object value)
Set a query property or hint.
QuerysetLockMode(LockModeType lockMode)
Set the lock mode type to be used for the query execution.
QuerysetMaxResults(int maxResult)
Set the maximum number of results to retrieve.
QuerysetParameter(Parameter param, T value)
Bind the value of a Parameter object.
QuerysetParameter(String name, Object value)
Bind an argument value to a named parameter.
QuerysetParameter(int position, Object value)
Bind an argument value to a positional parameter.
QuerysetParameter(Parameter param, Calendar value, TemporalType temporalType)
Bind an instance of java.util.Calendar to a Parameter object.
QuerysetParameter(Parameter param, Date value, TemporalType temporalType)
Bind an instance of java.util.Date to a Parameter object.
QuerysetParameter(String name, Calendar value, TemporalType temporalType)
Bind an instance of java.util.Calendar to a named parameter.
QuerysetParameter(String name, Date value, TemporalType temporalType)
Bind an instance of java.util.Date to a named parameter.
QuerysetParameter(int position, Calendar value, TemporalType temporalType)
Bind an instance of java.util.Calendar to a positional parameter.
QuerysetParameter(int position, Date value, TemporalType temporalType)
Bind an instance of java.util.Date to a positional parameter.
StringtoString()
Returns a string representation of the object.
Tunwrap(Class cls)
Return an object of the specified type to allow access to the provider-specific API.