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 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 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
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
(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