|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jpattern.orm.query.SmartRenderableSqlSubElement
com.jpattern.orm.query.clause.OrmOrderBy<FindOrderBy<BEAN>>
com.jpattern.orm.query.find.FindOrderByImpl<BEAN>
BEAN - public class FindOrderByImpl<BEAN>
| Constructor Summary | |
|---|---|
FindOrderByImpl(FindQuery<BEAN> findQuery)
|
|
| Method Summary | |
|---|---|
void |
appendValues(List<Object> values)
Append to the list all the values of the expression's elements |
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 |
protected FindOrderBy<BEAN> |
orderBy()
|
FindQuery<BEAN> |
query()
|
String |
renderSql()
Return the sql query generated by this IQuery Object |
void |
renderSql(StringBuilder stringBuilder)
Append to the string buffer the sql query generated by this IQuery Object |
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. |
FindWhere<BEAN> |
where()
Set the where clause. |
| Methods inherited from class com.jpattern.orm.query.clause.OrmOrderBy |
|---|
appendElementValues, asc, ascNullsFirst, ascNullsLast, desc, descNullsFirst, descNullsLast, doElementRender, getElementStatusVersion, setNameSolver |
| Methods inherited from class com.jpattern.orm.query.SmartRenderableSqlSubElement |
|---|
isElementStatusChanged, renderSqlElement, renderSqlElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jpattern.orm.query.clause.OrderBy |
|---|
asc, ascNullsFirst, ascNullsLast, desc, descNullsFirst, descNullsLast |
| Constructor Detail |
|---|
public FindOrderByImpl(FindQuery<BEAN> findQuery)
| Method Detail |
|---|
public String renderSql()
RenderableSqlQuery
renderSql in interface RenderableSqlQuerypublic void renderSql(StringBuilder stringBuilder)
RenderableSqlQuery
renderSql in interface RenderableSqlQuerypublic void appendValues(List<Object> values)
RenderableSqlQuery
appendValues in interface RenderableSqlQuerypublic FindQuery<BEAN> query()
query in interface FindOrderBy<BEAN>
public FindWhere<BEAN> where()
throws OrmException
FindOrderBy
where in interface FindOrderBy<BEAN>OrmException
protected FindOrderBy<BEAN> orderBy()
throws OrmException
orderBy in class OrmOrderBy<FindOrderBy<BEAN>>OrmException
public List<BEAN> findList()
throws OrmException
FindQueryCommon
findList in interface FindQueryCommon<BEAN>OrmException
public int findRowCount()
throws OrmException
FindQueryCommon
findRowCount in interface FindQueryCommon<BEAN>OrmException
public BEAN findUnique()
throws OrmException,
OrmNotUniqueResultException
FindQueryCommon
findUnique in interface FindQueryCommon<BEAN>OrmNotUniqueResultException - if zero or more than one row are returned from the query
OrmException
public void find(OrmRowMapper<BEAN> srr)
throws OrmException
FindQueryCommon
find in interface FindQueryCommon<BEAN>OrmException
public String getGeneratedRowCountSql()
throws OrmException
FindQueryCommon
getGeneratedRowCountSql in interface FindQueryCommon<BEAN>OrmException
public FindQuery<BEAN> setDistinct(boolean distinct)
throws OrmException
FindQueryCommon
setDistinct in interface FindQueryCommon<BEAN>OrmException
public boolean isDistinct()
throws OrmException
FindQueryCommon
isDistinct in interface FindQueryCommon<BEAN>OrmExceptionpublic FindQuery<BEAN> setLockMode(LockMode lockMode)
setLockMode in interface FindQueryCommon<BEAN>public LockMode getLockMode()
FindQueryCommon
getLockMode in interface FindQueryCommon<BEAN>
public int getMaxRows()
throws OrmException
FindQueryCommon
getMaxRows in interface FindQueryCommon<BEAN>OrmException
public FindQuery<BEAN> setMaxRows(int maxRows)
throws OrmException
FindQueryCommon
setMaxRows in interface FindQueryCommon<BEAN>OrmExceptionpublic FindQuery<BEAN> setQueryTimeout(int queryTimeout)
FindQueryCommon
setQueryTimeout in interface FindQueryCommon<BEAN>public int getQueryTimeout()
FindQueryCommon
getQueryTimeout in interface FindQueryCommon<BEAN>
public BEAN find()
throws OrmException,
OrmNotUniqueResultException
FindQueryCommonResultSet contains at least one row,
or null, if no matching beans are found).
find in interface FindQueryCommon<BEAN>OrmNotUniqueResultException - if zero or more than one row are returned from the query
OrmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||