|
Kodo 4.0.0 generated on May 15 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kodo.persistence.FetchPlan
public class FetchPlan
The fetch plan allows you to dynamically alter eager fetching configuration and other aspects of data loading.
Field Summary | |
---|---|
static int |
DEFAULT
Constant to revert any setting to its default value. |
static String |
FETCH_GROUP_ALL
Fetch group representing all fields. |
Constructor Summary | |
---|---|
FetchPlan(kodo.kernel.FetchConfiguration fetch)
Constructor; supply delegate. |
Method Summary | |
---|---|
FetchPlan |
addFetchGroup(String group)
Adds group to the set of fetch group names to
use when loading objects. |
FetchPlan |
addFetchGroups(Collection groups)
Adds groups to the set of fetch group names to
use when loading objects. |
FetchPlan |
addFetchGroups(String... groups)
Adds groups to the set of fetch group names to
use when loading objects. |
FetchPlan |
addField(Class cls,
String field)
Adds field to the set of field names to
use when loading objects. |
FetchPlan |
addField(String field)
Adds field to the set of fully-qualified field names to
use when loading objects. |
FetchPlan |
addFields(Class cls,
Collection fields)
Adds fields to the set of field names to
use when loading objects. |
FetchPlan |
addFields(Class cls,
String... fields)
Adds fields to the set of field names to
use when loading objects. |
FetchPlan |
addFields(Collection fields)
Adds fields to the set of fully-qualified field names to
use when loading objects. |
FetchPlan |
addFields(String... fields)
Adds fields to the set of fully-qualified field names to
use when loading objects. |
FetchPlan |
clearFetchGroups()
Clears the set of fetch group names to use wen loading data. |
FetchPlan |
clearFields()
Clears the set of field names to use wen loading data. |
boolean |
equals(Object other)
|
kodo.kernel.FetchConfiguration |
getDelegate()
Delegate. |
int |
getFetchBatchSize()
Return the fetch batch size for large result set support. |
Collection<String> |
getFetchGroups()
Returns the names of the fetch groups that this component will use when loading objects. |
Collection<String> |
getFields()
Returns the fully qualified names of the fields that this component will use when loading objects. |
int |
getLockTimeout()
The number of milliseconds to wait for an object lock, or -1 for no limit. |
boolean |
getQueryResultCache()
Return whether or not query caching is enabled. |
LockModeType |
getReadLockMode()
The lock level to use for locking loaded objects. |
LockModeType |
getWriteLockMode()
The lock level to use for locking dirtied objects. |
boolean |
hasField(Class cls,
String field)
Return true if the given field has been added. |
boolean |
hasField(String field)
Return true if the given field has been added. |
int |
hashCode()
|
protected kodo.kernel.DelegatingFetchConfiguration |
newDelegatingFetchConfiguration(kodo.kernel.FetchConfiguration fetch)
Create a new exception-translating delegating fetch configuration. |
FetchPlan |
removeFetchGroup(String group)
Remove the given fetch group. |
FetchPlan |
removeFetchGroups(Collection groups)
Removes groups from the set of fetch group names
to use when loading objects. |
FetchPlan |
removeFetchGroups(String... groups)
Removes groups from the set of fetch group names
to use when loading objects. |
FetchPlan |
removeField(Class cls,
String field)
Remove the given field. |
FetchPlan |
removeField(String field)
Remove the given fully-qualified field. |
FetchPlan |
removeFields(Class cls,
Collection fields)
Removes fields from the set of field names
to use when loading objects. |
FetchPlan |
removeFields(Class cls,
String... fields)
Removes fields from the set of field names
to use when loading objects. |
FetchPlan |
removeFields(Collection fields)
Removes fields from the set of fully-qualified field names
to use when loading objects. |
FetchPlan |
removeFields(String... fields)
Removes fields from the set of fully-qualified field names
to use when loading objects. |
FetchPlan |
resetFetchGroups()
Resets the set of fetch groups to the list in the global configuration. |
FetchPlan |
setFetchBatchSize(int fetchBatchSize)
Set the fetch batch size for large result set support. |
FetchPlan |
setLockTimeout(int timeout)
The number of milliseconds to wait for an object lock, or -1 for no limit. |
FetchPlan |
setQueryResultCache(boolean cache)
Control whether or not query caching is enabled. |
FetchPlan |
setReadLockMode(LockModeType mode)
The lock level to use for locking loaded objects. |
FetchPlan |
setWriteLockMode(LockModeType mode)
The lock level to use for locking dirtied objects. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FETCH_GROUP_ALL
public static final int DEFAULT
Constructor Detail |
---|
public FetchPlan(kodo.kernel.FetchConfiguration fetch)
Method Detail |
---|
protected kodo.kernel.DelegatingFetchConfiguration newDelegatingFetchConfiguration(kodo.kernel.FetchConfiguration fetch)
public kodo.kernel.FetchConfiguration getDelegate()
public int getFetchBatchSize()
kodo.FetchBatchSize
setting. Note
that this property will be ignored under some data stores.
public FetchPlan setFetchBatchSize(int fetchBatchSize)
kodo.FetchBatchSize
setting. Note
that this property will be ignored under some data stores.
public boolean getQueryResultCache()
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 FetchPlan setQueryResultCache(boolean cache)
public Collection<String> getFetchGroups()
kodo.FetchGroups
setting.
public FetchPlan addFetchGroup(String group)
group
to the set of fetch group names to
use when loading objects.
public FetchPlan addFetchGroups(String... groups)
groups
to the set of fetch group names to
use when loading objects.
public FetchPlan addFetchGroups(Collection groups)
groups
to the set of fetch group names to
use when loading objects.
public FetchPlan removeFetchGroup(String group)
public FetchPlan removeFetchGroups(String... groups)
groups
from the set of fetch group names
to use when loading objects.
public FetchPlan removeFetchGroups(Collection groups)
groups
from the set of fetch group names
to use when loading objects.
public FetchPlan clearFetchGroups()
public FetchPlan resetFetchGroups()
public Collection<String> getFields()
public boolean hasField(String field)
public boolean hasField(Class cls, String field)
public FetchPlan addField(String field)
field
to the set of fully-qualified field names to
use when loading objects.
public FetchPlan addField(Class cls, String field)
field
to the set of field names to
use when loading objects.
public FetchPlan addFields(String... fields)
fields
to the set of fully-qualified field names to
use when loading objects.
public FetchPlan addFields(Class cls, String... fields)
fields
to the set of field names to
use when loading objects.
public FetchPlan addFields(Collection fields)
fields
to the set of fully-qualified field names to
use when loading objects.
public FetchPlan addFields(Class cls, Collection fields)
fields
to the set of field names to
use when loading objects.
public FetchPlan removeField(String field)
public FetchPlan removeField(Class cls, String field)
public FetchPlan removeFields(String... fields)
fields
from the set of fully-qualified field names
to use when loading objects.
public FetchPlan removeFields(Class cls, String... fields)
fields
from the set of field names
to use when loading objects.
public FetchPlan removeFields(Collection fields)
fields
from the set of fully-qualified field names
to use when loading objects.
public FetchPlan removeFields(Class cls, Collection fields)
fields
from the set of field names
to use when loading objects.
public FetchPlan clearFields()
public int getLockTimeout()
public FetchPlan setLockTimeout(int timeout)
public LockModeType getReadLockMode()
public FetchPlan setReadLockMode(LockModeType mode)
public LockModeType getWriteLockMode()
public FetchPlan setWriteLockMode(LockModeType mode)
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
|
Kodo 4.0.0 generated on May 15 2006 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |