| java.lang.Object com.caucho.amber.manager.QueryImpl
QueryImpl | public class QueryImpl implements Query(Code) | | The EJB query
|
Method Summary | |
protected ResultSet | executeQuery() Executes the query returning a result set. | public int | executeUpdate() Execute an update or delete. | public List | getResultList() Execute the query and return as a List. | public Object | getSingleResult() Returns a single result. | public Query | setDouble(int index, double value) Sets an indexed parameter. | public Query | setFirstResult(int startPosition) Sets the position of the first result. | public Query | setFlushMode(FlushModeType mode) Sets the flush mode type. | public Query | setHint(String hintName, Object value) Sets a hint. | public Query | setMaxResults(int maxResults) Sets the maximum result returned. | protected void | setNativeSql(String sql) Sets the sql for native queries. | public Query | setParameter(String name, Object value) Sets a named parameter. | public Query | setParameter(String name, Date value, TemporalType type) Sets a date parameter. | public Query | setParameter(String name, Calendar value, TemporalType type) Sets a calendar parameter. | public Query | setParameter(int index, Object value) Sets an indexed parameter. | public Query | setParameter(int index, Date value, TemporalType type) Sets a date parameter. | public Query | setParameter(int index, Calendar value, TemporalType type) Sets a calendar parameter. | protected void | setSqlResultSetMapping(SqlResultSetMappingConfig map) Sets the sql result set mapping for native queries. |
executeUpdate | public int executeUpdate()(Code) | | Execute an update or delete.
|
getResultList | public List getResultList()(Code) | | Execute the query and return as a List.
|
getSingleResult | public Object getSingleResult()(Code) | | Returns a single result.
|
setDouble | public Query setDouble(int index, double value)(Code) | | Sets an indexed parameter.
|
setFirstResult | public Query setFirstResult(int startPosition)(Code) | | Sets the position of the first result.
|
setFlushMode | public Query setFlushMode(FlushModeType mode)(Code) | | Sets the flush mode type.
|
setMaxResults | public Query setMaxResults(int maxResults)(Code) | | Sets the maximum result returned.
|
setParameter | public Query setParameter(String name, Object value)(Code) | | Sets a named parameter.
|
setParameter | public Query setParameter(String name, Date value, TemporalType type)(Code) | | Sets a date parameter.
|
setParameter | public Query setParameter(String name, Calendar value, TemporalType type)(Code) | | Sets a calendar parameter.
|
setParameter | public Query setParameter(int index, Object value)(Code) | | Sets an indexed parameter.
|
setParameter | public Query setParameter(int index, Date value, TemporalType type)(Code) | | Sets a date parameter.
|
setParameter | public Query setParameter(int index, Calendar value, TemporalType type)(Code) | | Sets a calendar parameter.
|
|
|