|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FindQueryCommon<BEAN>
| Method Summary | |
|---|---|
BEAN |
find()
Execute the query returning either a single bean, if the ResultSet contains at least one row,
or null, if no matching beans are found). |
void |
find(OrmRowMapper<BEAN> srr)
Execute the query and for every object created call the IOrmSerialResultReader. |
List<BEAN> |
findList()
Execute the query returning the list of objects. |
int |
findRowCount()
Return the count of entities this query should return. |
BEAN |
findUnique()
Execute the query returning either a single bean or an Exception. |
String |
getGeneratedRowCountSql()
Return the sql that was generated to return the row count of the execution of this query. |
LockMode |
getLockMode()
Return the current lock mode |
int |
getMaxRows()
Return the max rows for this query. |
int |
getQueryTimeout()
Return the query timeout for the query. |
boolean |
isDistinct()
return if use Distinct in the select clause |
FindQuery<BEAN> |
setDistinct(boolean distinct)
Whether to use Distinct in the select clause |
FindQuery<BEAN> |
setLockMode(LockMode lockMode)
|
FindQuery<BEAN> |
setMaxRows(int maxRows)
Set the maximum number of rows to return in the query. |
FindQuery<BEAN> |
setQueryTimeout(int queryTimeout)
Set the query timeout for the query. |
| Methods inherited from interface com.jpattern.orm.query.RenderableSqlQuery |
|---|
appendValues, renderSql, renderSql |
| Method Detail |
|---|
List<BEAN> findList()
throws OrmException
OrmException
int findRowCount()
throws OrmException
OrmException
BEAN findUnique()
throws OrmException,
OrmNotUniqueResultException
OrmNotUniqueResultException - if zero or more than one row are returned from the query
OrmException
BEAN find()
throws OrmException,
OrmNotUniqueResultException
ResultSet contains at least one row,
or null, if no matching beans are found).
OrmNotUniqueResultException - if zero or more than one row are returned from the query
OrmException
void find(OrmRowMapper<BEAN> srr)
throws OrmException
srr -
OrmException
String getGeneratedRowCountSql()
throws OrmException
OrmException
FindQuery<BEAN> setDistinct(boolean distinct)
throws OrmException
OrmException
boolean isDistinct()
throws OrmException
OrmExceptionFindQuery<BEAN> setLockMode(LockMode lockMode)
lockMode -
LockMode getLockMode()
int getMaxRows()
throws OrmException
OrmException
FindQuery<BEAN> setMaxRows(int maxRows)
throws OrmException
maxRows -
OrmExceptionFindQuery<BEAN> setQueryTimeout(int queryTimeout)
int getQueryTimeout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||