|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Query
Interface used to control query execution.
| Method Summary | |
|---|---|
int |
executeUpdate()
Execute an update or delete statement. |
java.util.List |
getResultList()
Execute the query and return the query results as a List. |
java.lang.Object |
getSingleResult()
Execute a query that returns a single 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(java.lang.String hintName,
java.lang.Object value)
Set an implementation-specific hint. |
Query |
setMaxResults(int maxResult)
Set the maximum number of results to retrieve. |
Query |
setParameter(int position,
java.util.Calendar value,
TemporalType temporalType)
Bind an instance of java.util.Calendar to a positional parameter. |
Query |
setParameter(int position,
java.util.Date value,
TemporalType temporalType)
Bind an instance of java.util.Date to a positional parameter. |
Query |
setParameter(int position,
java.lang.Object value)
Bind an argument to a positional parameter. |
Query |
setParameter(java.lang.String name,
java.util.Calendar value,
TemporalType temporalType)
Bind an instance of java.util.Calendar to a named parameter. |
Query |
setParameter(java.lang.String name,
java.util.Date value,
TemporalType temporalType)
Bind an instance of java.util.Date to a named parameter. |
Query |
setParameter(java.lang.String name,
java.lang.Object value)
Bind an argument to a named parameter. |
| Method Detail |
|---|
java.util.List getResultList()
java.lang.Object getSingleResult()
int executeUpdate()
Query setMaxResults(int maxResult)
maxResult - The maximum number of results to return
Query setFirstResult(int startPosition)
startPosition - The position of the first result, numbered from 0
Query setHint(java.lang.String hintName,
java.lang.Object value)
hintName - A vendor-specific key to indicate the hintvalue - A vendor-specific value appropriate for the specified hint key
Query setParameter(java.lang.String name,
java.lang.Object value)
name - The parameter namevalue - The value to bind to the parameter name
Query setParameter(java.lang.String name,
java.util.Date value,
TemporalType temporalType)
name - The parameter namevalue - The Date value to bind to the parameter nametemporalType - The specific part of the date to use
Query setParameter(java.lang.String name,
java.util.Calendar value,
TemporalType temporalType)
name - The parameter namevalue - The Calendar value to bind to the parameter nametemporalType - The specific part of the Calendar to use
Query setParameter(int position,
java.lang.Object value)
position - The parameter position (numbered from 0)value - The value to bind to the parameter position
Query setParameter(int position,
java.util.Date value,
TemporalType temporalType)
position - The parameter position (numbered from 0)value - The Date value to bind to the parameter positiontemporalType - The specific part of the date to use
Query setParameter(int position,
java.util.Calendar value,
TemporalType temporalType)
position - The parameter position (numbered from 0)value - The Calendar value to bind to the parameter positiontemporalType - The specific part of the calendar to use
Query setFlushMode(FlushModeType flushMode)
flushMode -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||