public abstract class QueryBase extends Object implements javax.persistence.Query
| Constructor and Description |
|---|
QueryBase() |
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstResult()
The position of the first result the query object was set to retrieve.
|
javax.persistence.FlushModeType |
getFlushMode()
Get the flush mode in effect for the query execution.
|
Map<String,Object> |
getHints()
Get the properties and hints and associated values that are in effect for the query instance not supported
|
javax.persistence.LockModeType |
getLockMode()
Get the current lock mode for the query not supported.
|
int |
getMaxResults()
The maximum number of results the query object was set to retrieve.
|
javax.persistence.Parameter<?> |
getParameter(int position)
Get the parameter object corresponding to the declared positional parameter with the given position not supported
|
<X> javax.persistence.Parameter<X> |
getParameter(int position,
Class<X> type)
Get the parameter object corresponding to the declared positional parameter with the given position and type not supported
|
javax.persistence.Parameter<?> |
getParameter(String name)
Get the parameter object corresponding to the declared parameter of the given name not supported
|
<X> javax.persistence.Parameter<X> |
getParameter(String name,
Class<X> type)
Get the parameter object corresponding to the declared parameter of the given name and type not supported
|
Set<javax.persistence.Parameter<?>> |
getParameters()
Get the parameter objects corresponding to the declared parameters of the query not supported
|
Object |
getParameterValue(int position)
Return the input value bound to the positional parameter not supported
|
<X> X |
getParameterValue(javax.persistence.Parameter<X> param)
Return the input value bound to the parameter not supported
|
Object |
getParameterValue(String param)
Return the input value bound to the named parameter not supported
|
boolean |
isBound(javax.persistence.Parameter<?> param)
Return a boolean indicating whether a value has been bound to the parameter not supported
|
javax.persistence.Query |
setFirstResult(int startPosition)
Set the position of the first result to retrieve.
|
javax.persistence.Query |
setFlushMode(javax.persistence.FlushModeType type)
Set the flush mode type to be used for the query execution not supported.
|
javax.persistence.Query |
setHint(String hintName,
Object value)
Set an implementation-specific hint not supported
|
javax.persistence.Query |
setLockMode(javax.persistence.LockModeType lockMode)
Set the lock mode type to be used for the query execution not supported
|
javax.persistence.Query |
setMaxResults(int maxResults)
Set the maximum number of results to retrieve.
|
javax.persistence.Query |
setParameter(javax.persistence.Parameter<Calendar> param,
Calendar value,
javax.persistence.TemporalType temporalType)
Bind an instance of java.util.Calendar to a Parameter object not supported
|
javax.persistence.Query |
setParameter(javax.persistence.Parameter<Date> param,
Date value,
javax.persistence.TemporalType temporalType)
Bind an instance of java.util.Date to a Parameter object not supported
|
<X> javax.persistence.Query |
setParameter(javax.persistence.Parameter<X> param,
X value)
Bind the value of a Parameter object not supported
|
<X> X |
unwrap(Class<X> cls)
Return an object of the specified type to allow access to the provider-specific API.
|
public javax.persistence.Query setMaxResults(int maxResults)
setMaxResults in interface javax.persistence.QuerymaxResults - Maximum number of objects to return, 0 means unlimitedIllegalArgumentException - if argument is negativepublic javax.persistence.Query setFirstResult(int startPosition)
setFirstResult in interface javax.persistence.QuerystartPosition - The start position of the first result, numbered from 0IllegalArgumentException - if argument is negativepublic javax.persistence.Query setFlushMode(javax.persistence.FlushModeType type)
setFlushMode in interface javax.persistence.Querytype - Not usedpublic javax.persistence.Query setHint(String hintName, Object value)
setHint in interface javax.persistence.QueryhintName - value - public int getFirstResult()
getFirstResult in interface javax.persistence.Querypublic javax.persistence.FlushModeType getFlushMode()
getFlushMode in interface javax.persistence.Querypublic Map<String,Object> getHints()
getHints in interface javax.persistence.Querypublic javax.persistence.LockModeType getLockMode()
getLockMode in interface javax.persistence.Querypublic int getMaxResults()
getMaxResults in interface javax.persistence.Querypublic javax.persistence.Parameter<?> getParameter(int position)
getParameter in interface javax.persistence.Queryposition - public javax.persistence.Parameter<?> getParameter(String name)
getParameter in interface javax.persistence.Queryname - public <X> javax.persistence.Parameter<X> getParameter(int position,
Class<X> type)
getParameter in interface javax.persistence.Queryposition - type - public <X> javax.persistence.Parameter<X> getParameter(String name, Class<X> type)
getParameter in interface javax.persistence.Queryname - type - public Object getParameterValue(int position)
getParameterValue in interface javax.persistence.Queryposition - public <X> X getParameterValue(javax.persistence.Parameter<X> param)
getParameterValue in interface javax.persistence.Queryparam - public Object getParameterValue(String param)
getParameterValue in interface javax.persistence.Queryparam - public Set<javax.persistence.Parameter<?>> getParameters()
getParameters in interface javax.persistence.Querypublic boolean isBound(javax.persistence.Parameter<?> param)
isBound in interface javax.persistence.Queryparam - public javax.persistence.Query setLockMode(javax.persistence.LockModeType lockMode)
setLockMode in interface javax.persistence.QuerylockMode - public <X> javax.persistence.Query setParameter(javax.persistence.Parameter<X> param,
X value)
setParameter in interface javax.persistence.Queryparam - value - public javax.persistence.Query setParameter(javax.persistence.Parameter<Calendar> param, Calendar value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.Queryparam - value - temporalType - public javax.persistence.Query setParameter(javax.persistence.Parameter<Date> param, Date value, javax.persistence.TemporalType temporalType)
setParameter in interface javax.persistence.Queryparam - value - temporalType - public <X> X unwrap(Class<X> cls)
unwrap in interface javax.persistence.Querycls - the class of the object to be returned. This is normally either the underlying query implementation class or an interface
that it implements.javax.persistence.PersistenceException - if the provider does not support the callThis documentation is licensed by Andrew Bowley under the GPLv3 License.