|
||||||||||
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 Query
public void setStartAtIndex(int startAtIndex)
Query
setStartAtIndex
in interface Query
startAtIndex
- starting index, inclusive.public int getEndAtIndex()
getEndAtIndex
in interface Query
public void setEndAtIndex(int endAtIndex)
Query
setEndAtIndex
in interface Query
endAtIndex
- ending index, inclusivepublic void fullSize(int size)
fullSize
in interface Query
size
- public int fullSize()
fullSize
in interface Query
public void setWithExtents(boolean withExtents)
setWithExtents
in interface Query
public boolean getWithExtents()
getWithExtents
in interface Query
public java.lang.Class getSearchClass()
Query
getSearchClass
in interface Query
public java.lang.Class getBaseClass()
Query
getBaseClass
in interface Query
public java.util.List getGroupBy()
Query
getGroupBy
in interface Query
public java.util.List getOrderBy()
Query
getOrderBy
in interface Query
public java.util.List getPrefetchedRelationships()
Query
getPrefetchedRelationships
in interface Query
public Criteria getCriteria()
Query
getCriteria
in interface Query
public java.lang.Object getExampleObject()
Query
getExampleObject
in interface Query
public Criteria getHavingCriteria()
Query
getHavingCriteria
in interface Query
public boolean isDistinct()
Query
isDistinct
in interface Query
public boolean usePaging()
Query
usePaging
in interface Query
public void setFetchSize(int fetchSize)
Query
setFetchSize
in interface Query
fetchSize
- 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 |