com.filenet.api.constants
Class RefreshMode
- java.lang.Object
-
- com.filenet.api.constants.RefreshMode
-
- All Implemented Interfaces:
- java.io.Serializable
public class RefreshMode extends java.lang.Object implements java.io.SerializableSpecifies whether to retrieve refreshed data from the Content Engine server for updating an object's property cache when the object is explicitly saved or is committed to the persistent store as part of a batch. Use this constant when calling methods that have arefreshparameter, such assaveandcreateUpdatingBatchInstance. Depending on the parameters of the method being called, you can either refresh all of the object's properties or, by specifying a property filter, refresh a subset of the object's properties.Note that you cannot refresh an object's property cache until the object has been created on the Content Engine server. Attempting to do so causes an
API_SAVE_BEFORE_REFRESHexception to be thrown.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static RefreshModeNO_REFRESHSpecifies that upon saving or committing the object, its property cache is not refreshed with updated data from the Content Engine server.static RefreshModeREFRESHSpecifies that upon saving or committing the object, its property cache is refreshed with updated data from the Content Engine server.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static RefreshModegetInstanceFromInt(int value)Gets an instance of this class using its associated integer value (the*_AS_INTfields).intgetValue()Returns an integer value associated with a specific instance of this class.java.lang.StringtoString()Returns aStringrepresentation of this instance.
-
-
-
Field Detail
-
REFRESH
public static final RefreshMode REFRESH
Specifies that upon saving or committing the object, its property cache is refreshed with updated data from the Content Engine server. SpecifyingREFRESHsynchronizes the object's properties with those in the persistent store.
-
NO_REFRESH
public static final RefreshMode NO_REFRESH
Specifies that upon saving or committing the object, its property cache is not refreshed with updated data from the Content Engine server.
-
-
Method Detail
-
getValue
public int getValue()
Returns an integer value associated with a specific instance of this class.- Returns:
- An integer representing a specific instance of this class.
-
getInstanceFromInt
public static RefreshMode getInstanceFromInt(int value)
Gets an instance of this class using its associated integer value (the*_AS_INTfields).- Parameters:
value- An integer representing a particular static instance of this class.- Returns:
- The referenced
RefreshModeinstance. - Throws:
EngineRuntimeException- Thrown when thevalueparameter isnullor invalid.
-
toString
public java.lang.String toString()
Returns aStringrepresentation of this instance.- Overrides:
toStringin classjava.lang.Object- Returns:
- A
Stringrepresenting the instance.
-
-