public abstract class AbstractQueryImpl extends java.lang.Object implements Query, java.io.Serializable
NO_END_AT_INDEX, NO_START_AT_INDEX, NOT_SCROLLABLE, SCROLLABLE| Constructor and Description |
|---|
AbstractQueryImpl() |
AbstractQueryImpl(java.lang.Class aSearchClass) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public AbstractQueryImpl()
public AbstractQueryImpl(java.lang.Class aSearchClass)
public int getStartAtIndex()
getStartAtIndex in interface Querypublic void setStartAtIndex(int startAtIndex)
QuerysetStartAtIndex in interface QuerystartAtIndex - starting index, inclusive.public int getEndAtIndex()
getEndAtIndex in interface Querypublic void setEndAtIndex(int endAtIndex)
QuerysetEndAtIndex in interface QueryendAtIndex - ending index, inclusivepublic void setWithExtents(boolean withExtents)
setWithExtents in interface Querypublic boolean getWithExtents()
getWithExtents in interface Querypublic java.lang.Class getSearchClass()
QuerygetSearchClass in interface Querypublic java.lang.Class getBaseClass()
QuerygetBaseClass in interface Querypublic java.util.List getGroupBy()
QuerygetGroupBy in interface Querypublic java.util.List getOrderBy()
QuerygetOrderBy in interface Querypublic java.util.List getPrefetchedRelationships()
QuerygetPrefetchedRelationships in interface Querypublic Criteria getCriteria()
QuerygetCriteria in interface Querypublic java.lang.Object getExampleObject()
QuerygetExampleObject in interface Querypublic Criteria getHavingCriteria()
QuerygetHavingCriteria in interface Querypublic boolean isDistinct()
QueryisDistinct in interface Querypublic boolean usePaging()
Querypublic void setFetchSize(int fetchSize)
QuerysetFetchSize in interface QueryfetchSize - the fetch size specific to this querypublic int getFetchSize()
QuerygetFetchSize in interface Query(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30