|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.fc.collections.RefreshSpec
public class RefreshSpec
Encapsulates the parameters that can be passed to the CollectionsManager
refresh APIs.
Supported API: true
Extendable: false
CollectionsManager.refresh(WTCollection),
Serialized Form| Field Summary | |
|---|---|
static RefreshSpec |
DEFAULT
A default, unmodfiable, reusable refresh spec. |
static RefreshSpec |
LOCK_AND_REFRESH
An unmodifiable, reusable RefreshSpec with the same configuration as the DEFAULT spec, exception that lock is true. |
static int |
REFRESH_BOTH_ROLES
One of the spec's possible linkActions. |
static int |
REFRESH_LINK_ONLY
One of the spec's possible linkActions. |
static int |
REFRESH_ROLEA
One of the spec's possible linkActions. |
static int |
REFRESH_ROLEB
One of the spec's possible linkActions. |
static int |
REFRESH_STALE
One of the spec's possible staleActions. |
static int |
REMOVE_DELETE
One of the spec's possible deleteActions. |
static int |
RETAIN_DELETE
One of the spec's possible deleteActions. |
static int |
VALIDATE_DELETE
One of the spec's possible deleteActions. |
static int |
VALIDATE_STALE
One of the spec's possible staleActions. |
static int |
VALIDATE_STALE_IMMEDIATELY
One of the spec's possible staleActions. |
| Constructor Summary | |
|---|---|
RefreshSpec()
Supported API: true |
|
| Method Summary | |
|---|---|
int |
getDeleteAction()
Gets the value of the attribute: deleteAction; Determines what the refresh will do with objects that are in the collection that have been deleted. |
int |
getLinkAction()
Gets the value of the attribute: linkAction; Determines how the refresh will handle a Link object's roles. |
int |
getStaleAction()
Gets the value of the attribute: staleAction; Determines what the refresh will do with objects that are in the collection that are stale. |
boolean |
isDisableAccess()
Gets the value of the attribute: disableAccess; When true, the refresh is performed with access control disabled. |
boolean |
isForceRefresh()
Gets the value of the attribute: forceRefresh; When true, all objects are refreshed from the database regardless of whether or not they are stale. |
boolean |
isLock()
Gets the value of the attribute: lock; When true, all the objects in the collection (stale or not) are locked for the remainder of the current transaction. |
boolean |
isUseReadOnly()
Gets the value of the attribute: useReadOnly; This property allows server-side refreshes to use read-only instances of objects in the object reference cache. |
void |
setDeleteAction(int a_DeleteAction)
Sets the value of the attribute: deleteAction; Determines what the refresh will do with objects that are in the collection that have been deleted. |
void |
setDisableAccess(boolean a_DisableAccess)
Sets the value of the attribute: disableAccess; When true, the refresh is performed with access control disabled. |
void |
setForceRefresh(boolean a_ForceRefresh)
Sets the value of the attribute: forceRefresh; When true, all objects are refreshed from the database regardless of whether or not they are stale. |
void |
setLinkAction(int a_LinkAction)
Sets the value of the attribute: linkAction; Determines how the refresh will handle a Link object's roles. |
void |
setLock(boolean a_Lock)
Sets the value of the attribute: lock; When true, all the objects in the collection (stale or not) are locked for the remainder of the current transaction. |
void |
setStaleAction(int a_StaleAction)
Sets the value of the attribute: staleAction; Determines what the refresh will do with objects that are in the collection that are stale. |
void |
setUseReadOnly(boolean a_UseReadOnly)
Sets the value of the attribute: useReadOnly; This property allows server-side refreshes to use read-only instances of objects in the object reference cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final RefreshSpec DEFAULT
| deleteAction | VALIDATE_DELETE |
| disableAccess | false |
| lock | false |
| staleAction | UPDATE_STALE |
public static final RefreshSpec LOCK_AND_REFRESH
public static final int REMOVE_DELETE
setDeleteAction(int),
Constant Field Valuespublic static final int RETAIN_DELETE
setDeleteAction(int),
Constant Field Valuespublic static final int VALIDATE_DELETE
setDeleteAction(int),
Constant Field Valuespublic static final int REFRESH_STALE
setStaleAction(int),
Constant Field Valuespublic static final int VALIDATE_STALE
setStaleAction(int),
Constant Field Valuespublic static final int REFRESH_BOTH_ROLES
setLinkAction(int),
Constant Field Valuespublic static final int REFRESH_ROLEA
setLinkAction(int),
Constant Field Valuespublic static final int REFRESH_ROLEB
setLinkAction(int),
Constant Field Valuespublic static final int REFRESH_LINK_ONLY
setLinkAction(int),
Constant Field Valuespublic static final int VALIDATE_STALE_IMMEDIATELY
setStaleAction(int),
Constant Field Values| Constructor Detail |
|---|
public RefreshSpec()
| Method Detail |
|---|
public int getDeleteAction()
CollectionContainsDeleteAction
if the collection contains any deleted objects (Default)
public void setDeleteAction(int a_DeleteAction)
throws WTPropertyVetoException
CollectionContainsDeleteAction
if the collection contains any deleted objects (Default)
a_DeleteAction -
WTPropertyVetoExceptionpublic boolean isDisableAccess()
public void setDisableAccess(boolean a_DisableAccess)
throws WTPropertyVetoException
a_DisableAccess -
WTPropertyVetoExceptionpublic boolean isForceRefresh()
Default: true
Supported API: true
public void setForceRefresh(boolean a_ForceRefresh)
throws WTPropertyVetoException
Default: true
Supported API: true
a_ForceRefresh -
WTPropertyVetoExceptionpublic int getLinkAction()
BinaryLink
public void setLinkAction(int a_LinkAction)
throws WTPropertyVetoException
a_LinkAction -
WTPropertyVetoExceptionBinaryLinkpublic boolean isLock()
public void setLock(boolean a_Lock)
throws WTPropertyVetoException
a_Lock -
WTPropertyVetoExceptionpublic int getStaleAction()
CollectionContainsStaleException
with the identities of all stale objects in the collection
CollectionContainsStaleException
with the identity of the first stale object encountered by the refresh.
This may save some processing time if the caller does not have a need
to display the stale objects to a client or log file.
public void setStaleAction(int a_StaleAction)
throws WTPropertyVetoException
CollectionContainsStaleException
with the identities of all stale objects in the collection
CollectionContainsStaleException
with the identity of the first stale object encountered by the refresh.
This may save some processing time if the caller does not have a need
to display the stale objects to a client or log file.
a_StaleAction -
WTPropertyVetoExceptionpublic boolean isUseReadOnly()
CachedObjectReference
ReferenceCache
public void setUseReadOnly(boolean a_UseReadOnly)
throws WTPropertyVetoException
CachedObjectReference
a_UseReadOnly -
WTPropertyVetoExceptionReferenceCache
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||