|
SolarMetric Kodo JDO 3.1.6 generated on August 25 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. |
static int |
LOCK_NONE
No lock. |
static int |
LOCK_READ
Generic read lock level. |
static int |
LOCK_WRITE
Generic write lock level. |
static int |
QUERY_FLUSH_FALSE
Constant denoting that queries should never flush data to the database automatically before executing a query, but should instead execute queries in-memory if necessary. |
static int |
QUERY_FLUSH_TRUE
Constant denoting that queries should flush data to the database automatically whenever Kodo determines that relevant modifications have been made and IgnoreCache is false. |
static int |
QUERY_FLUSH_WITH_CONNECTION
Constant denoting that queries should flush data to the database automatically when Kodo determines that relevant modifications have been made and the current PersistenceManager already has a dedicated connection. |
| 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()
Fetch configurations are cloneable. |
void |
copy(FetchConfiguration fetch)
Copy the state from the given fetch configuration to this one. |
void |
fromConfiguration(JDOConfiguration conf)
Used by the system to synchronize the fetch configuration with global configuration properties. |
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. |
int |
getLockTimeout()
The number of milliseconds to wait for an object lock, or -1 for no limit. |
KodoPersistenceManager |
getPersistenceManager()
Return the persistence manager assiciated with this configuration; may be null if it has not been set or this object has been serialized. |
int |
getReadLockLevel()
The lock level to use for locking loaded objects. |
int |
getWriteLockLevel()
The lock level to use for locking dirtied objects. |
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 |
setLockTimeout(int timeout)
The number of milliseconds to wait for an object lock, or -1 for no limit. |
void |
setPersistenceManager(KodoPersistenceManager pm)
Called automatically by the system to associate the fetch configuration with a persistence manager before use. |
void |
setQueryCacheEnabled(boolean cache)
Control whether or not query caching is enabled. |
void |
setReadLockLevel(int level)
The lock level to use for locking loaded objects. |
void |
setWriteLockLevel(int level)
The lock level to use for locking dirtied objects. |
| Field Detail |
public static final int EAGER_FETCH_NONE
public static final int EAGER_FETCH_SINGLE
public static final int EAGER_FETCH_MULTIPLE
public static final int QUERY_FLUSH_TRUE
false. See JDOConfiguration.getFlushBeforeQueries()
for more info.public static final int QUERY_FLUSH_FALSE
JDOConfiguration.getFlushBeforeQueries() for more info.public static final int QUERY_FLUSH_WITH_CONNECTION
JDOConfiguration.getFlushBeforeQueries() for more info.public static final int LOCK_NONE
KodoPersistenceManager.LOCK_NONEpublic static final int LOCK_READ
KodoPersistenceManager.LOCK_READpublic static final int LOCK_WRITE
KodoPersistenceManager.LOCK_WRITE| Method Detail |
public KodoPersistenceManager getPersistenceManager()
public void setPersistenceManager(KodoPersistenceManager pm)
public void fromConfiguration(JDOConfiguration conf)
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()
public void setFlushBeforeQueries(int flush)
public 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 int getLockTimeout()
public void setLockTimeout(int timeout)
public int getReadLockLevel()
public void setReadLockLevel(int level)
public int getWriteLockLevel()
public void setWriteLockLevel(int level)
public ResultList newResultList(ResultObjectProvider rop)
public void copy(FetchConfiguration fetch)
public Object clone()
clone in class Object
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||