public interface Query
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NO_END_AT_INDEX |
static int |
NO_START_AT_INDEX |
static boolean |
NOT_SCROLLABLE |
static boolean |
SCROLLABLE |
static long |
serialVersionUID |
Modifier and Type | Method and Description |
---|---|
int |
fullSize()
Deprecated.
use OJBIterator.fullSize()
|
void |
fullSize(int size)
Deprecated.
|
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
|
static final long serialVersionUID
static final int NO_START_AT_INDEX
static final int NO_END_AT_INDEX
static final boolean SCROLLABLE
static final boolean NOT_SCROLLABLE
Criteria getCriteria()
Criteria getHavingCriteria()
java.lang.Object getExampleObject()
java.lang.Class getSearchClass()
java.lang.Class getBaseClass()
boolean isDistinct()
java.util.List getOrderBy()
java.util.List getGroupBy()
int getStartAtIndex()
void setStartAtIndex(int startAtIndex)
startAtIndex
- starting index, inclusive.int getEndAtIndex()
void setEndAtIndex(int endAtIndex)
endAtIndex
- ending index, inclusivejava.util.List getPrefetchedRelationships()
void fullSize(int size)
size
- int fullSize()
void setWithExtents(boolean withExtents)
boolean getWithExtents()
boolean usePaging()
void setFetchSize(int fetchSize)
fetchSize
- the fetch size specific to this queryint getFetchSize()
(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