|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Allows configuration and optimization of how objects are loaded from the data store.
| Field Summary | |
static int |
EAGER_FETCH_MULTIPLE
Constant indicating that eager fetching should be optimized for selecting multiple objects. |
static int |
EAGER_FETCH_NONE
Constant indicating not to try to load related objects when querying for an object. |
static int |
EAGER_FETCH_SINGLE
Constant indicating that eager fetching should be optimized for selecting a single object. |
| Method Summary | |
boolean |
addFetchGroup(String group)
Adds group to the set of fetch group names to
use when loading objects. |
boolean |
addFetchGroups(Collection groups)
Adds groups to the set of fetch group names to
use when loading objects. |
boolean |
addFetchGroups(String[] groups)
Adds groups to the set of fetch group names to
use when loading objects. |
void |
clearFetchGroups()
Clears the set of fetch group names to use wen loading data. |
Object |
clone()
Implementations must be cloneable. |
int |
getEagerFetchMode()
Return the eager fetch mode. |
int |
getFetchBatchSize()
Return the fetch batch size for large result set support. |
String[] |
getFetchGroups()
Returns the names of the fetch groups that this component will use when loading objects. |
int |
getFlushBeforeQueries()
The query automatic flush configuration. |
boolean |
hasFetchGroup(String group)
Return true if the given fetch group has been added. |
boolean |
isQueryCacheEnabled()
Return whether or not query caching is enabled. |
ResultList |
newResultList(ResultObjectProvider rop)
Return a new result list for the current fetch configuration. |
boolean |
removeFetchGroup(String group)
Remove the given fetch group. |
boolean |
removeFetchGroups(Collection groups)
Removes groups from the set of fetch group names
to use when loading objects. |
boolean |
removeFetchGroups(String[] groups)
Removes groups from the set of fetch group names
to use when loading objects. |
void |
setEagerFetchMode(int mode)
Set the eager fetch mode. |
void |
setFetchBatchSize(int fetchBatchSize)
Set the fetch batch size for large result set support. |
void |
setFlushBeforeQueries(int flush)
The query automatic flush configuration. |
void |
setQueryCacheEnabled(boolean cache)
Control whether or not query caching is enabled. |
| Field Detail |
public static final int EAGER_FETCH_NONE
public static final int EAGER_FETCH_SINGLE
public static final int EAGER_FETCH_MULTIPLE
| Method Detail |
public int getEagerFetchMode()
kodo.EagerFetchMode setting.public void setEagerFetchMode(int mode)
kodo.EagerFetchMode setting.public int getFetchBatchSize()
kodo.FetchBatchSize setting. Note
that this property will be ignored under some data stores.public void setFetchBatchSize(int fetchBatchSize)
kodo.FetchBatchSize setting. Note
that this property will be ignored under some data stores.public boolean isQueryCacheEnabled()
true but the datacache plugin is not installed, caching
will not be enabled. If this
returns false, query caching will not be used
even if the datacache plugin is installed.public void setQueryCacheEnabled(boolean cache)
public int getFlushBeforeQueries()
KodoQuery#FLUSH_TRUE,
KodoQuery#FLUSH_FALSE,
KodoQuery#FLUSH_WITH_CONNECTIONpublic void setFlushBeforeQueries(int flush)
KodoQuery#FLUSH_TRUE,
KodoQuery#FLUSH_FALSE,
KodoQuery#FLUSH_WITH_CONNECTIONpublic String[] getFetchGroups()
kodo.FetchGroups setting.public boolean hasFetchGroup(String group)
public boolean addFetchGroup(String group)
group to the set of fetch group names to
use when loading objects.true if group was added;
false if group was already
in the fetch group setpublic boolean addFetchGroups(String[] groups)
groups to the set of fetch group names to
use when loading objects.true if the set of fetch group names to
load was updated as a result of this operationpublic boolean addFetchGroups(Collection groups)
groups to the set of fetch group names to
use when loading objects.true if the set of fetch group names to
load was updated as a result of this operationpublic boolean removeFetchGroup(String group)
public boolean removeFetchGroups(String[] groups)
groups from the set of fetch group names
to use when loading objects.true if the set of fetch group names to
load was updated as a result of this operationpublic boolean removeFetchGroups(Collection groups)
groups from the set of fetch group names
to use when loading objects.true if the set of fetch group names to
load was updated as a result of this operationpublic void clearFetchGroups()
public ResultList newResultList(ResultObjectProvider rop)
public Object clone()
clone in class Object
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||