|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.fc.collections.RefreshSpec
Encapsulates the parameters that can be passed to the CollectionsManager
refresh APIs.
Supported API: true
Extendable: false
CollectionsManager.refresh(WTCollection)
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static RefreshSpec |
DEFAULT
A default, unmodfiable, reusable refresh spec. |
private static int |
DEFAULT_MASK
|
private static int |
DELETE_ACTIONS
|
private boolean |
disableAccess
|
static long |
EXTERNALIZATION_VERSION_UID
|
protected static int |
FORCE_REFRESH_FLAG
|
private static int |
LINK_ACTIONS
|
static RefreshSpec |
LOCK_AND_REFRESH
An unmodifiable, reusable RefreshSpec with the same configuration as the DEFAULT spec, exception that lock is true. |
protected static int |
LOCK_FLAG
|
private int |
mask
|
private boolean |
modifiable
|
protected static long |
OLD_FORMAT_VERSION_UID
|
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. |
private static String |
RESOURCE
|
(package private) static RefreshSpec |
RESTORE
|
static int |
RETAIN_DELETE
One of the spec's possible deleteActions. |
(package private) static long |
serialVersionUID
|
private static int |
STALE_ACTIONS
|
static int |
UPDATE_STALE
Deprecated. Replaced by REFRESH_STALE |
private boolean |
useReadOnly
|
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 |
private |
RefreshSpec(boolean modifiable,
int mask)
|
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 |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(RefreshSpec thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
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. |
String |
toString()
|
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
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 Valuesprotected static final int LOCK_FLAG
public 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 Valuesprotected static final int FORCE_REFRESH_FLAG
public static final int VALIDATE_STALE_IMMEDIATELY
setStaleAction(int)
,
Constant Field Valuesprivate transient boolean disableAccess
private transient boolean useReadOnly
private transient boolean modifiable
private int mask
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
public static final int UPDATE_STALE
REFRESH_STALE
,
Constant Field Valuesprivate static final int STALE_ACTIONS
private static final int DELETE_ACTIONS
private static final int LINK_ACTIONS
private static final int DEFAULT_MASK
static final RefreshSpec RESTORE
Constructor Detail |
public RefreshSpec()
private RefreshSpec(boolean modifiable, int mask)
modifiable
- mask
- Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(RefreshSpec thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
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
-
WTPropertyVetoException
public boolean isDisableAccess()
public void setDisableAccess(boolean a_DisableAccess) throws WTPropertyVetoException
a_DisableAccess
-
WTPropertyVetoException
public boolean isForceRefresh()
Default: true
Supported API: true
public void setForceRefresh(boolean a_ForceRefresh) throws WTPropertyVetoException
Default: true
Supported API: true
a_ForceRefresh
-
WTPropertyVetoException
public int getLinkAction()
BinaryLink
public void setLinkAction(int a_LinkAction) throws WTPropertyVetoException
a_LinkAction
-
WTPropertyVetoException
BinaryLink
public boolean isLock()
public void setLock(boolean a_Lock) throws WTPropertyVetoException
a_Lock
-
WTPropertyVetoException
public 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
-
WTPropertyVetoException
public boolean isUseReadOnly()
CachedObjectReference
ReferenceCache
public void setUseReadOnly(boolean a_UseReadOnly) throws WTPropertyVetoException
CachedObjectReference
a_UseReadOnly
-
WTPropertyVetoException
ReferenceCache
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |