|
||||||||||
| 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.OrmWhere<FindWhere<BEAN>>
com.jpattern.orm.query.find.FindWhereImpl<BEAN>
public class FindWhereImpl<BEAN>
| Constructor Summary | |
|---|---|
FindWhereImpl(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 |
FindOrderBy<BEAN> |
orderBy()
Set the order by clause. |
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()
|
| Methods inherited from class com.jpattern.orm.query.clause.OrmWhere |
|---|
allEq, and, and, appendElementValues, doElementRender, eq, eqProperties, ge, geProperties, getElementStatusVersion, gt, gtProperties, ieq, ieqProperties, ilike, in, in, in, isNotNull, isNull, le, leProperties, like, lt, ltProperties, ne, neProperties, nin, nin, nin, nlike, not, or, or, 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.Where |
|---|
allEq, and, and, eq, eqProperties, ge, geProperties, gt, gtProperties, ieq, ieqProperties, ilike, in, in, in, isNotNull, isNull, le, leProperties, like, lt, ltProperties, ne, neProperties, nin, nin, nin, nlike, not, or, or |
| Constructor Detail |
|---|
public FindWhereImpl(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 FindWhere<BEAN>
public FindWhere<BEAN> where()
throws OrmException
where in class OrmWhere<FindWhere<BEAN>>OrmException
public FindOrderBy<BEAN> orderBy()
throws OrmException
FindWhere
orderBy in interface FindWhere<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 | |||||||||