|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ojb.broker.query.AbstractQueryImpl
Abstract implemenation of Query interface
| Field Summary |
| Fields inherited from interface org.apache.ojb.broker.query.Query |
NO_END_AT_INDEX, NO_START_AT_INDEX, NOT_SCROLLABLE, SCROLLABLE |
| Constructor Summary | |
AbstractQueryImpl()
|
|
AbstractQueryImpl(java.lang.Class aSearchClass)
|
|
| Method Summary | |
int |
fullSize()
|
void |
fullSize(int size)
|
java.lang.Class |
getBaseClass()
return the base class, with respect to which all paths are done |
Criteria |
getCriteria()
return the criteria of the query if present or null. |
int |
getEndAtIndex()
|
java.lang.Object |
getExampleObject()
return the template Object if present or null |
int |
getFetchSize()
Returns the fetchSize hint for this Query |
java.util.List |
getGroupBy()
Gets the groupby for ReportQueries of all Criteria and Sub Criteria the elements are of class FieldHelper |
Criteria |
getHavingCriteria()
return the criteria of the query if present or null. |
java.util.List |
getOrderBy()
Answer the orderBy of all Criteria and Sub Criteria the elements are of class FieldHelper |
java.util.List |
getPrefetchedRelationships()
Returns the names of Relationships to be prefetched |
java.lang.Class |
getSearchClass()
return the target class, representing the extend to be searched |
int |
getStartAtIndex()
|
boolean |
getWithExtents()
|
boolean |
isDistinct()
return true if select DISTINCT should be used |
void |
setEndAtIndex(int endAtIndex)
Set the row at which the query should stop retrieving results, inclusive. |
void |
setFetchSize(int fetchSize)
Set fetchSize hint for this Query. |
void |
setStartAtIndex(int startAtIndex)
Set the row at which the query should start retrieving results, inclusive first row is 1 |
void |
setWithExtents(boolean withExtents)
|
boolean |
usePaging()
Answer true if start- and endIndex is set |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractQueryImpl()
public AbstractQueryImpl(java.lang.Class aSearchClass)
| Method Detail |
public int getStartAtIndex()
getStartAtIndex in interface Querypublic void setStartAtIndex(int startAtIndex)
Query
setStartAtIndex in interface QuerystartAtIndex - starting index, inclusive.public int getEndAtIndex()
getEndAtIndex in interface Querypublic void setEndAtIndex(int endAtIndex)
Query
setEndAtIndex in interface QueryendAtIndex - ending index, inclusivepublic void fullSize(int size)
fullSize in interface Querysize - public int fullSize()
fullSize in interface Querypublic void setWithExtents(boolean withExtents)
setWithExtents in interface Querypublic boolean getWithExtents()
getWithExtents in interface Querypublic java.lang.Class getSearchClass()
Query
getSearchClass in interface Querypublic java.lang.Class getBaseClass()
Query
getBaseClass in interface Querypublic java.util.List getGroupBy()
Query
getGroupBy in interface Querypublic java.util.List getOrderBy()
Query
getOrderBy in interface Querypublic java.util.List getPrefetchedRelationships()
Query
getPrefetchedRelationships in interface Querypublic Criteria getCriteria()
Query
getCriteria in interface Querypublic java.lang.Object getExampleObject()
Query
getExampleObject in interface Querypublic Criteria getHavingCriteria()
Query
getHavingCriteria in interface Querypublic boolean isDistinct()
Query
isDistinct in interface Querypublic boolean usePaging()
Query
usePaging in interface Querypublic void setFetchSize(int fetchSize)
Query
setFetchSize in interface QueryfetchSize - the fetch size specific to this querypublic int getFetchSize()
Query
getFetchSize in interface Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||