|
||||||||||
| 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<CustomFindOrderBy>
com.jpattern.orm.query.find.CustomFindOrderByImpl
public class CustomFindOrderByImpl
| Constructor Summary | |
|---|---|
CustomFindOrderByImpl(CustomFindQuery customFindQuery)
|
|
| Method Summary | ||
|---|---|---|
void |
appendValues(List<Object> values)
Append to the list all the values of the expression's elements |
|
|
find(ResultSetReader<T> rse)
Execute the query reading the ResultSet with a ResultSetReader. |
|
|
find(ResultSetRowReader<T> rsrr)
Execute the query reading the ResultSet with a ResultSetRowReader. |
|
BigDecimal |
findBigDecimal()
Execute the query and read the result as a BigDecimal value |
|
boolean |
findBoolean()
Execute the query and read the result as a boolean value |
|
double |
findDouble()
Execute the query and read the result as a double value |
|
float |
findFloat()
Execute the query and read the result as a float value |
|
int |
findInt()
Execute the query and read the result as an int value |
|
List<Object[]> |
findList()
Execute the query and read the result creating a List of all the ordered arrays with the extracted column values for every row. |
|
long |
findLong()
Execute the query and read the result as an long value |
|
String |
findString()
Execute the query and read the result as a String value |
|
Object[] |
findUnique()
Execute the query and read the result creating an ordered array with the extracted column values or null (if no matching bean is found). |
|
|
findUnique(ResultSetRowReader<T> rsrr)
Execute the query reading the ResultSet with a ResultSetRowReader. |
|
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 CustomFindOrderBy |
orderBy()
|
|
CustomFindQuery |
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 |
|
CustomFindQuery |
setDistinct(boolean distinct)
Whether to use Distinct in the select clause |
|
CustomFindQuery |
setLockMode(LockMode lockMode)
|
|
CustomFindQuery |
setMaxRows(int maxRows)
Set the maximum number of rows to return in the query. |
|
CustomFindQuery |
setQueryTimeout(int queryTimeout)
Set the query timeout for the query. |
|
CustomFindWhere |
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 CustomFindOrderByImpl(CustomFindQuery customFindQuery)
| 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 CustomFindQuery query()
query in interface CustomFindOrderBy
public CustomFindWhere where()
throws OrmException
CustomFindOrderBy
where in interface CustomFindOrderByOrmException
public <T> T find(ResultSetReader<T> rse)
throws OrmException
CustomQueryResultSetReader.
find in interface CustomQueryResultSetReader
OrmException
protected CustomFindOrderBy orderBy()
throws OrmException
orderBy in class OrmOrderBy<CustomFindOrderBy>OrmException
public List<Object[]> findList()
throws OrmException
CustomQuery
findList in interface CustomQueryOrmException
public Object[] findUnique()
throws OrmNotUniqueResultException
CustomQuery
findUnique in interface CustomQueryOrmNotUniqueResultException - if not exactly one row is returned from the query
public int findInt()
throws OrmException
CustomQuery
findInt in interface CustomQueryOrmException
public long findLong()
throws OrmException
CustomQuery
findLong in interface CustomQueryOrmException
public double findDouble()
throws OrmException
CustomQuery
findDouble in interface CustomQueryOrmException
public float findFloat()
throws OrmException
CustomQuery
findFloat in interface CustomQueryOrmException
public String findString()
throws OrmException
CustomQuery
findString in interface CustomQueryOrmException
public boolean findBoolean()
throws OrmException
CustomQuery
findBoolean in interface CustomQueryOrmException
public BigDecimal findBigDecimal()
throws OrmException
CustomQuery
findBigDecimal in interface CustomQueryOrmExceptionpublic CustomFindQuery setLockMode(LockMode lockMode)
setLockMode in interface CustomFindQueryCommonpublic LockMode getLockMode()
CustomFindQueryCommon
getLockMode in interface CustomFindQueryCommon
public int getMaxRows()
throws OrmException
CustomFindQueryCommon
getMaxRows in interface CustomFindQueryCommonOrmException
public CustomFindQuery setMaxRows(int maxRows)
throws OrmException
CustomFindQueryCommon
setMaxRows in interface CustomFindQueryCommonOrmExceptionpublic CustomFindQuery setQueryTimeout(int queryTimeout)
CustomFindQueryCommon
setQueryTimeout in interface CustomFindQueryCommonpublic int getQueryTimeout()
CustomFindQueryCommon
getQueryTimeout in interface CustomFindQueryCommon
public CustomFindQuery setDistinct(boolean distinct)
throws OrmException
CustomFindQueryCommon
setDistinct in interface CustomFindQueryCommonOrmException
public boolean isDistinct()
throws OrmException
CustomFindQueryCommon
isDistinct in interface CustomFindQueryCommonOrmException
public <T> List<T> find(ResultSetRowReader<T> rsrr)
throws OrmException
CustomQueryResultSetRowReader.
find in interface CustomQueryrsrr - object that will extract all rows of results
ResultSetRowReader
OrmException
public <T> T findUnique(ResultSetRowReader<T> rsrr)
throws OrmException,
OrmNotUniqueResultException
CustomQueryResultSetRowReader.
findUnique in interface CustomQueryrsrr - object that will extract the row of result
OrmException
OrmNotUniqueResultException - if the results of the query executions are not exactly 1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||