Class CacheControl
Java class for CacheControl complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CacheControl"> <complexContent> <extension base="{http://www.ibm.com/websphere/wim}Control"> <sequence> <element name="mode" type="{http://www.w3.org/2001/XMLSchema}string"/> </sequence> </extension> </complexContent> </complexType>
The CacheControl object extends the Control object and defines a single property: mode.
The CacheControl object specifies whether the repository adapter cache should be cleared before an operation is performed and the mode of clearing the cache. The CacheControl object can be passed to the get(), search(), and update() APIs. The LDAP adapter uses the CacheControl to clear its cache; the other out-of-the-box adapters ignore the CacheControl as they not have a cache. If you are using a custom adapter, you can implement its own handling for clearing cache using the CacheControl.
The mode property specifies the mode of clearing the repository adapter cache before an operation is performed. Valid values are:
- clearEntity: clears the cache for the specified entity. This value does not have any effect on the search() API
- clearAll: clears all of the cached information in the adapter.
The values are not case-sensitive. There is no default value for this property. If you do not specify a value, or specify a value other than clearEntity or clearAll, an error message appears.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the requested propertygetDataType
(String propName) Gets the Java type of the value of the provided property.getMode()
Gets the value of the mode property.static List
getPropertyNames
(String entityTypeName) Gets a list of all supported properties for this model object, CacheControlstatic HashSet
Gets a set of any model objects which extend this model object, CacheControlGets a list of any model objects which this model object, CacheControl, is an extension of.Gets the name of this model object, CacheControlboolean
Returns true if the requested property is set; false, otherwise.boolean
Returns true if the mode property is set; false, otherwise.boolean
Returns a true if the provided model object is one that this model object extends; false, otherwise.void
Sets the value of the provided property to the provided value.void
Sets the value of the mode property.toString()
Returns this model object, CacheControl, and its contents as a Stringvoid
Sets the value of provided property to null.
-
Constructor Details
-
CacheControl
public CacheControl()
-
-
Method Details
-
getMode
Gets the value of the mode property.- Returns:
- returned object is
String
-
setMode
Sets the value of the mode property.- Parameters:
value
- allowed object isString
-
isSetMode
public boolean isSetMode()Returns true if the mode property is set; false, otherwise.- Returns:
- returned object is
boolean
-
get
Gets the value of the requested property -
isSet
Returns true if the requested property is set; false, otherwise. -
set
Sets the value of the provided property to the provided value. -
unset
Sets the value of provided property to null. -
getTypeName
Gets the name of this model object, CacheControl- Overrides:
getTypeName
in classControl
- Returns:
- returned object is
String
-
getPropertyNames
Gets a list of all supported properties for this model object, CacheControl -
getDataType
Gets the Java type of the value of the provided property. For example: String, List- Overrides:
getDataType
in classControl
- Parameters:
propName
- allowed object isString
- Returns:
- returned object is
String
-
getSuperTypes
Gets a list of any model objects which this model object, CacheControl, is an extension of.- Overrides:
getSuperTypes
in classControl
- Returns:
- returned object is
ArrayList
-
isSubType
Returns a true if the provided model object is one that this model object extends; false, otherwise. -
getSubTypes
Gets a set of any model objects which extend this model object, CacheControl- Returns:
- returned object is
HashSet
-
toString
Returns this model object, CacheControl, and its contents as a String
-