|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IOrmQuery<T>
| Method Summary | |
|---|---|
void |
find(IOrmSerialResultReader<T> srr)
Execute the query and for every object created call the IOrmSerialResultReader. |
List<T> |
findList()
Execute the query returning the list of objects. |
long |
findRowCount()
Return the count of entities this query should return. |
T |
findUnique()
Execute the query returning either a single bean or null (if no matching bean is found). |
String |
getGeneratedRowCountSql()
Return the sql that was generated for to return the row count of the execution of this query. |
boolean |
isDistinct()
return if use Distinct in the select clause |
IOrmQuery<T> |
setDistinct()
use Distinct in the select clause |
IOrmQuery<T> |
setMaxRows(int maxRows)
Set the maximum number of rows to return in the query. |
IOrmQuery<T> |
setQueryTimeout(int queryTimeout)
Set the query timeout for the query. |
| Methods inherited from interface com.googlecode.jpattern.orm.query.IBaseOrmQuery |
|---|
join, orderBy, where |
| Methods inherited from interface com.googlecode.jpattern.orm.query.IQuery |
|---|
appendValues, getMaxRows, getQueryTimeout |
| Methods inherited from interface com.googlecode.jpattern.orm.query.IRenderableSqlObject |
|---|
renderSql, renderSql |
| Method Detail |
|---|
List<T> findList()
throws OrmException
OrmException
long findRowCount()
throws OrmException
OrmException
T findUnique()
throws OrmException,
OrmNotUniqueResultException
OrmNotUniqueResultException - if more than one row is returned from the query
OrmException
void find(IOrmSerialResultReader<T> srr)
throws OrmException
srr -
OrmException
String getGeneratedRowCountSql()
throws OrmException
OrmException
IOrmQuery<T> setDistinct()
throws OrmException
OrmException
boolean isDistinct()
throws OrmException
OrmException
IOrmQuery<T> setMaxRows(int maxRows)
throws OrmException
setMaxRows in interface IQuerymaxRows -
OrmExceptionIOrmQuery<T> setQueryTimeout(int queryTimeout)
setQueryTimeout in interface IQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||