Package com.microstrategy.web.objects
Interface WebCacheStatement
- 
- All Superinterfaces:
 WebStatement
public interface WebCacheStatement extends WebStatement
Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.This object defines a statement which is used to identify a server command within a schedule that targets a Cache. Corresponding to a cache schedule(pre-existing and read from IServer or one to be newly created on IServer) a WebCacheStatement holds such information as the cache command, cache options, target report/project. This object cannot be directly instantiated, and can only be obtained indirectly from the other scheduling-related objects.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetCacheCommand()Deprecated.Returns the cache command property.intgetCacheOptions()Deprecated.Returns the cache options for a cache expiration request.WebObjectInfogetProjectInfo()Deprecated.Returns the project which the statement applies to.WebObjectInfogetReportInfo()Deprecated.Returns aWebObjectInfoobject corresponding to the targert report object, if any, for this cache statement.voidsetCacheCommand(int cacheCommand)Deprecated.Sets the cache command property.voidsetCacheOptions(int cacheOptions)Deprecated.Sets the cache options for a cache expiration request.voidsetReportInfo(WebObjectInfo reportTarget)Deprecated.Sets the target report.- 
Methods inherited from interface com.microstrategy.web.objects.WebStatement
getStatementType 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getReportInfo
WebObjectInfo getReportInfo()
Deprecated.Returns aWebObjectInfoobject corresponding to the targert report object, if any, for this cache statement.- Returns:
 - A 
WebObjectInfo, populated with relevant information about this statement object.The object returned can be null, if the cache statement does not correspond to a single report. 
 
- 
setReportInfo
void setReportInfo(WebObjectInfo reportTarget)
Deprecated.Sets the target report. It is used to identify the report cache to expire.- Parameters:
 reportTarget- The targetWebObjectInfo. A value of null is valid for this type of statement.
 
- 
getCacheCommand
int getCacheCommand()
Deprecated.Returns the cache command property. Cache command is a value from the enumerationEnumDSSXMLCacheExpCommandwhich describes the cache expiration request for cache schedule.The default value of this property is
EnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandInvalidate.- Returns:
 - The current setting for a cache command, from 
EnumDSSXMLCacheExpCommand. 
 
- 
setCacheCommand
void setCacheCommand(int cacheCommand)
Deprecated.Sets the cache command property. Cache command is a value from the enumerationEnumDSSXMLCacheExpCommandwhich describes the cache expiration request for cache schedule.
Note
[1] Setting the cache command toEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandElementPurgedefaults the cache option toEnumDSSXMLCacheExpOptions.DssXmlCacheExpReservedand ReportInfo to null.
[2] Setting the cache command toEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandInvalidateorEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandDeletedefaults the cache option toEnumDSSXMLCacheExpOptions.DssXmlCacheExpOptionsBoth.- Parameters:
 cacheCommand- The setting to use for a cache expiration command, fromEnumDSSXMLCacheExpCommand.
 
- 
getCacheOptions
int getCacheOptions()
Deprecated.Returns the cache options for a cache expiration request.The default value of this flag is
EnumDSSXMLCacheExpOptions.DssXmlCacheExpOptionsBoth.- Returns:
 - A value from the enumeration 
EnumDSSXMLCacheExpOptions, describing the current CacheOptions flag. 
 
- 
setCacheOptions
void setCacheOptions(int cacheOptions)
Deprecated.Sets the cache options for a cache expiration request. Possible values are enumerated inEnumDSSXMLCacheExpOptions.
Note
[1] With a cache option ofEnumDSSXMLCacheExpOptions.DssXmlCacheExpReserved, a value ofEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandInvalidateorEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandDeletefor the cache command value is erroneous and will throw error on trying to save such a schedule.
[2] Similarly, a cache option ofEnumDSSXMLCacheExpOptions.DssXmlCacheExpOptionsBothwith a value other thanEnumDSSXMLCacheExpCommand.DssXmlCacheExpCommandElementPurgefor the cache command is erroneous and will throw error on trying to save such a schedule.- Parameters:
 cacheOptions- A value from the enumerationEnumDSSXMLCacheExpOptions.
 
- 
getProjectInfo
WebObjectInfo getProjectInfo()
Deprecated.Returns the project which the statement applies to.- Returns:
 - The 
WebObjectInfoobject corresponding to the project which this cache-related statement should apply to. 
 
 - 
 
 -