| javax.persistence.Query
All known Subclasses: com.versant.core.ejb.VersantEjbQueryImp,
Query | public interface Query (Code) | | Interface used to control query execution.
|
Method Summary | |
public int | executeUpdate() Execute an update or delete statement. | public List | getResultList() Execute the query and return the query results as a List. | public Object | getSingleResult() Execute a query that returns a single result. | public Query | setFirstResult(int startPosition) Set the position of the first result to retrieve. | public Query | setFlushMode(FlushModeType flushMode) Set the flush mode type to be used for the query execution. | public Query | setHint(String hintName, Object value) Set an implementation-specific hint. | public Query | setMaxResults(int maxResult) Set the maximum number of results to retrieve. | public Query | setParameter(String name, Object value) Bind an argument to a named parameter. | public Query | setParameter(String name, Date value, TemporalType temporalType) Bind an instance of java.util.Date to a named parameter. | public Query | setParameter(String name, Calendar value, TemporalType temporalType) Bind an instance of java.util.Calendar to a named parameter. | public Query | setParameter(int position, Object value) Bind an argument to a positional parameter. | public Query | setParameter(int position, Date value, TemporalType temporalType) Bind an instance of java.util.Date to a positional parameter. | public Query | setParameter(int position, Calendar value, TemporalType temporalType) Bind an instance of java.util.Calendar to a positional parameter. |
executeUpdate | public int executeUpdate()(Code) | | Execute an update or delete statement.
Update or delete row count |
getResultList | public List getResultList()(Code) | | Execute the query and return the query results as a List.
List containing the query results |
setFirstResult | public Query setFirstResult(int startPosition)(Code) | | Set the position of the first result to retrieve.
Parameters: startPosition - The position of the first result, numbered from 0 The same query instance |
setFlushMode | public Query setFlushMode(FlushModeType flushMode)(Code) | | Set the flush mode type to be used for the query execution.
Parameters: flushMode - |
setHint | public Query setHint(String hintName, Object value)(Code) | | Set an implementation-specific hint.
Parameters: hintName - A vendor-specific key to indicate the hint Parameters: value - A vendor-specific value appropriate for the specified hint key The same query instance |
setMaxResults | public Query setMaxResults(int maxResult)(Code) | | Set the maximum number of results to retrieve.
Parameters: maxResult - The maximum number of results to return The same query instance |
setParameter | public Query setParameter(String name, Object value)(Code) | | Bind an argument to a named parameter.
Parameters: name - The parameter name Parameters: value - The value to bind to the parameter name The same query instance |
setParameter | public Query setParameter(String name, Date value, TemporalType temporalType)(Code) | | Bind an instance of java.util.Date to a named parameter.
Parameters: name - The parameter name Parameters: value - The Date value to bind to the parameter name Parameters: temporalType - The specific part of the date to use The same query instance |
setParameter | public Query setParameter(String name, Calendar value, TemporalType temporalType)(Code) | | Bind an instance of java.util.Calendar to a named parameter.
Parameters: name - The parameter name Parameters: value - The Calendar value to bind to the parameter name Parameters: temporalType - The specific part of the Calendar to use The same query instance |
setParameter | public Query setParameter(int position, Object value)(Code) | | Bind an argument to a positional parameter.
Parameters: position - The parameter position (numbered from 0) Parameters: value - The value to bind to the parameter position The same query instance |
setParameter | public Query setParameter(int position, Date value, TemporalType temporalType)(Code) | | Bind an instance of java.util.Date to a positional parameter.
Parameters: position - The parameter position (numbered from 0) Parameters: value - The Date value to bind to the parameter position Parameters: temporalType - The specific part of the date to use The same query instance |
setParameter | public Query setParameter(int position, Calendar value, TemporalType temporalType)(Code) | | Bind an instance of java.util.Calendar to a positional parameter.
Parameters: position - The parameter position (numbered from 0) Parameters: value - The Calendar value to bind to the parameter position Parameters: temporalType - The specific part of the calendar to use The same query instance |
|
|