|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public java.util.List getResultList()
public java.lang.Object getSingleResult()
public int executeUpdate()
public Query setMaxResults(int maxResult)
maxResult - The maximum number of results to returnpublic Query setFirstResult(int startPosition)
startPosition - The position of the first result, numbered from 0
public 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
public Query setParameter(java.lang.String name,
java.lang.Object value)
name - The parameter namevalue - The value to bind to the parameter name
public 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
public 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
public Query setParameter(int position,
java.lang.Object value)
position - The parameter position (numbered from 0)value - The value to bind to the parameter position
public 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
public 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 usepublic Query setFlushMode(FlushModeType flushMode)
flushMode -
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||