|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.jpattern.orm.query.AQuery
com.googlecode.jpattern.orm.query.ABaseOrmQuery
com.googlecode.jpattern.orm.query.OrmCustomQuery
public class OrmCustomQuery
| Constructor Summary | |
|---|---|
OrmCustomQuery(String selectClause,
IOrmClassToolMap ormClassToolMap,
ISessionSqlPerformer session,
Class<?> clazz,
Class<?>... joinClasses)
|
|
| Method Summary | ||
|---|---|---|
|
find(IResultSetReader<T> rse)
Execute the query reading the ResultSet with a IResultSetReader. |
|
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 wuery 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. |
|
protected void |
renderFrom(StringBuffer stringBuffer)
|
|
protected void |
renderOrderBy(StringBuffer stringBuffer)
|
|
protected void |
renderSelect(StringBuffer stringBuffer)
|
|
protected void |
renderWhere(StringBuffer stringBuffer)
|
|
void |
setNameSolver(INameSolver nameSolver)
|
|
| Methods inherited from class com.googlecode.jpattern.orm.query.ABaseOrmQuery |
|---|
appendValues, join, orderBy, renderSql, renderSql, setJoin, setOrderBy, setWhere, where |
| Methods inherited from class com.googlecode.jpattern.orm.query.AQuery |
|---|
getMaxRows, getQueryTimeout, setMaxRows, setQueryTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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, setMaxRows, setQueryTimeout |
| Methods inherited from interface com.googlecode.jpattern.orm.query.IRenderableSqlObject |
|---|
renderSql, renderSql |
| Constructor Detail |
|---|
public OrmCustomQuery(String selectClause,
IOrmClassToolMap ormClassToolMap,
ISessionSqlPerformer session,
Class<?> clazz,
Class<?>... joinClasses)
| Method Detail |
|---|
public void setNameSolver(INameSolver nameSolver)
setNameSolver in interface INameSolverConsumerpublic List<Object[]> findList()
ICustomQuery
findList in interface ICustomQuery
public Object[] findUnique()
throws OrmNotUniqueResultException
ICustomQuery
findUnique in interface ICustomQueryOrmNotUniqueResultException - if not exactly one row is returned from the query executionprotected void renderSelect(StringBuffer stringBuffer)
renderSelect in class ABaseOrmQueryprotected void renderFrom(StringBuffer stringBuffer)
renderFrom in class ABaseOrmQueryprotected void renderWhere(StringBuffer stringBuffer)
renderWhere in class ABaseOrmQueryprotected void renderOrderBy(StringBuffer stringBuffer)
renderOrderBy in class ABaseOrmQuery
public <T> T find(IResultSetReader<T> rse)
throws OrmException
ICustomQuery
find in interface ICustomQueryrse - object that will extract all rows of results
OrmException
public int findInt()
throws OrmException
ICustomQuery
findInt in interface ICustomQueryOrmException
public long findLong()
throws OrmException
ICustomQuery
findLong in interface ICustomQueryOrmException
public double findDouble()
throws OrmException
ICustomQuery
findDouble in interface ICustomQueryOrmException
public float findFloat()
throws OrmException
ICustomQuery
findFloat in interface ICustomQueryOrmException
public String findString()
throws OrmException
ICustomQuery
findString in interface ICustomQueryOrmException
public boolean findBoolean()
throws OrmException
ICustomQuery
findBoolean in interface ICustomQueryOrmException
public BigDecimal findBigDecimal()
throws OrmException
ICustomQuery
findBigDecimal in interface ICustomQueryOrmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||