Package com.microstrategy.web.beans
Interface ResultSetBean
-
- All Superinterfaces:
EnumWebPersistableState,ObjectBean,Persistable,RequestPersistable,Transformable,WebBean,WebComponent
- All Known Subinterfaces:
DocumentBean,ReportBean,RWBean
public interface ResultSetBean extends ObjectBean
- Since:
- MicroStrategy Web 8.0.0
-
-
Field Summary
-
Fields inherited from interface com.microstrategy.utils.serialization.EnumWebPersistableState
BARE_MINIMAL_STATE_INFO, MAXIMAL_STATE_INFO, MINIMAL_STATE_INFO, TYPICAL_STATE_INFO
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancancelRequest()Cancels the current request.intgetExpiration()Deprecated.As of WU 8.0.java.lang.StringgetLastPromptMessageID()Wheneverrefresh(boolean)with the reprompt argument set to true, a duplicate message is made in order to answer all the new prompts, i.e.intgetMaxWait()Returns the maximum amount of time, in milliseconds.java.lang.StringgetMessageID()Returns the message ID associated with the result set instance contained in thisResultSetBean.intgetPollingFrequency()Returns the polling frequency, in milliseconds, which will be used when retrieving the results synchronously.PromptsBeangetPromptsBean()Returns the embeddedPromptsBean.WebEventHandlergetPromptsEventHandler()Returns the prompts event handler associated with thePromptsBean.WebResultSetInstancegetResultSetInstance()Returns the result set instance.booleangetSaveToInbox()Returns the flag indicating whether to save the result into user's Inbox.intgetStateID()Returns the current state ID set on the result set instanceResultSetBean.voidinitializeFromSchedule(WebSchedule s)Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions.voidinitializeFromSubscription(WebSubscription s)Initializes the bean using aWebSubscriptionobject.booleanisPrompted()Returns a boolean value indicating whether the result set instance contains any prompt questions.booleanisReady()Indicates whether the result set is in a "ready" state where results can be retrieved.voidrefresh()Refreshes the underlyingWebResultSetInstance.voidrefresh(boolean rePrompt)Refreshes the underlying objects encapsulated by this bean with the option to reopen the prompt.voidsetDisplayName(java.lang.String displayName)Set display name of the bean.voidsetExpiration(int hoursExpire)Deprecated.As of WU 8.0.voidsetMaxWait(int millis)Sets the maximum amount of time, in milliseconds.voidsetMessageID(java.lang.String msgID)Sets the message ID to the result set instance contained in thisResultSetBean.voidsetPollingFrequency(int millis)Sets the polling frequency, in milliseconds, which will be used when retrieving the results synchronously.voidsetPromptsEventHandler(WebEventHandler promptsEventHandler)Sets the prompt event handler on this bean, which theResultSetBeanapplies to the embeddedPromptsBean.voidsetSaveToInbox(boolean saveToInbox)Sets the boolean value indicating whether to save the result into user's Inbox.voidsetStateID(int stateID)Sets a state ID on the result set instance contained in thisResultSetBean.-
Methods inherited from interface com.microstrategy.web.beans.ObjectBean
getBlockBegin, getBlockCount, getDisplayName, getFlags, getLevel, getObjectID, getObjectInfo, getObjectName, getObjectType, getParentFolderBean, getParentFolderBean, getParentID, setBlockBegin, setBlockCount, setFlags, setLevel, setObjectID, setObjectInfo, setObjectName, setObjectType
-
Methods inherited from interface com.microstrategy.utils.serialization.Persistable
restoreState, restoreState, saveState, saveState, saveState, saveState
-
Methods inherited from interface com.microstrategy.web.beans.RequestPersistable
restoreStateFromRequest, restoreStateFromRequest
-
Methods inherited from interface com.microstrategy.web.beans.Transformable
addTransform, addTransformByClass, addTransformByStyle, addTransformByStyle, clearTransforms, getBeanContext, getMessageString, getMyTransformInstances, getTransformInstance, getTransformInstance, getTransformInstances, getType, hasTransform, hasTransform, invalidateTransformCache, setBeanContext, transform, transform
-
Methods inherited from interface com.microstrategy.web.beans.WebBean
getDocument, getErrorInfo, getSessionInfo, isStale, setSessionInfo, setStale
-
Methods inherited from interface com.microstrategy.web.beans.WebComponent
addChild, addChildStateInfo, addChildStateInfo, collectData, collectMinimalData, generateOutput, getBeanContext, getChild, getChild, getChildByClass, getChildByType, getChildCount, getChildrenByClass, getDefaultStateLevel, getFeaturesManager, getMaximumStateLevel, getName, getOutputFormat, getParent, getPath, getPersistMode, getRenderingFilter, getRoot, getTargetBean, getTargetBeanPath, getWebEvent, getWebEvent, getWebEventHandler, getXMLStatus, handleRequest, hasChanged, hasJustOpened, initBean, invalidateChildrenState, isBeanContextEmpty, isFeatureAvailable, prepareForReuse, removeChild, removeChild, searchChild, setBeanContext, setBeanContext, setChanged, setChanged, setDefaultStateLevel, setFeaturesManager, setName, setOutputFormat, setParent, setPersistMode, setRenderingFilter, setTargetBean, setTargetBeanPath, setWebEventHandler
-
-
-
-
Method Detail
-
getMessageID
java.lang.String getMessageID() throws WebBeanExceptionReturns the message ID associated with the result set instance contained in thisResultSetBean.- Returns:
- the message ID of the result set instance.
- Throws:
WebBeanException- thrown if error occurred when retrieving the message ID.
-
setMessageID
void setMessageID(java.lang.String msgID)
Sets the message ID to the result set instance contained in thisResultSetBean.- Parameters:
msgID- the message ID set on thisResultSetBean.
-
getLastPromptMessageID
java.lang.String getLastPromptMessageID()
Wheneverrefresh(boolean)with the reprompt argument set to true, a duplicate message is made in order to answer all the new prompts, i.e.getMessageID()will return the new message ID of the duplicate. This method will return the original message ID prior to the reprompt.- Returns:
- the last message ID before the current prompt.
- Since:
- MicroStrategy Web 9.0.0
-
getStateID
int getStateID() throws WebBeanExceptionReturns the current state ID set on the result set instanceResultSetBean.- Returns:
- the state ID set on the result set instance
- Throws:
WebBeanException- thrown if error occurred when retrieving the state ID.
-
setStateID
void setStateID(int stateID)
Sets a state ID on the result set instance contained in thisResultSetBean.- Parameters:
stateID- the state ID set on the result set instance
-
getMaxWait
int getMaxWait()
Returns the maximum amount of time, in milliseconds.ResultSetBeanwill wait for the execution result in synchronous mode. This can be used to provide an upper bound on synchronous execution time. The value of 0 means to run the result set will execute in asynchronous mode, while -1 means waiting indefinitely until the data is returned or error occurs.- Returns:
- the current setting for the maxWait property.
-
setMaxWait
void setMaxWait(int millis)
Sets the maximum amount of time, in milliseconds.ResultSetBeanwill wait for the execution results synchronous mode. This can be used to provide an upper bound on synchronous execution time. The value of 0 means to run the result set in asynchronous mode, while -1 means waiting indefinitely until the data is returned or error occurs.- Parameters:
millis- the maximum amount of time to wait in synchronous mode.
-
getPollingFrequency
int getPollingFrequency()
Returns the polling frequency, in milliseconds, which will be used when retrieving the results synchronously.- Returns:
- The current frequency, in milliseconds.
-
setPollingFrequency
void setPollingFrequency(int millis)
Sets the polling frequency, in milliseconds, which will be used when retrieving the results synchronously.- Parameters:
millis- the polling frequency to use, in milliseconds.
-
isPrompted
boolean isPrompted() throws WebBeanExceptionReturns a boolean value indicating whether the result set instance contains any prompt questions.- Returns:
- true if the result set instance contains prompts
- Throws:
WebBeanException- thrown if error occurred when retrieving the prompted information.
-
getSaveToInbox
boolean getSaveToInbox()
Returns the flag indicating whether to save the result into user's Inbox.- Returns:
- true if saving the result into Inbox
-
setSaveToInbox
void setSaveToInbox(boolean saveToInbox)
Sets the boolean value indicating whether to save the result into user's Inbox.- Parameters:
saveToInbox- true if want to save the result set to Inbox
-
getExpiration
int getExpiration()
Deprecated.As of WU 8.0.Returns the amount of time, in hours, to expire the cached execution results on thisResultSetBeanof 0 means the results are immediately expired.- Returns:
- the expiration time, in hours, of the results cached in this
ResultSetBean.
-
setExpiration
void setExpiration(int hoursExpire)
Deprecated.As of WU 8.0.Returns the amount of time, in hours, to expire the cached execution results on thisResultSetBean. If a value of 0 is supplied, the results are immediately expired.- Parameters:
hoursExpire- expiration time in hours.
-
getPromptsBean
PromptsBean getPromptsBean()
Returns the embeddedPromptsBean. If thisResultSetBeandoes not contains any prompt questions, the returnedPromptsBeanwill not contain aPromptObject. If theResultSetBeanrepresents a document, then all prompts in all reports within the document will be contained in the bean.- Returns:
- the embedded
PromptsBean.
-
setPromptsEventHandler
void setPromptsEventHandler(WebEventHandler promptsEventHandler)
Sets the prompt event handler on this bean, which theResultSetBeanapplies to the embeddedPromptsBean. If any prompt events are sent to theResultSetBeanevent handler, it may delegate it to thePromptsBeanevent handler.- Parameters:
promptsEventHandler- a prompts event handler instance.
-
getPromptsEventHandler
WebEventHandler getPromptsEventHandler()
Returns the prompts event handler associated with thePromptsBean.- Returns:
- the prompts event handler
- See Also:
getPromptsBean()
-
cancelRequest
boolean cancelRequest()
Cancels the current request.- Returns:
- returns true if successfully canceled.
-
refresh
void refresh() throws WebBeanExceptionRefreshes the underlyingWebResultSetInstance. This refresh will not reopen the answered prompt, if any.- Throws:
WebBeanException- thrown if error occurs when refreshing.
-
refresh
void refresh(boolean rePrompt) throws WebBeanExceptionRefreshes the underlying objects encapsulated by this bean with the option to reopen the prompt.- Parameters:
rePrompt- true if you want to re-open the answered prompt if there is any.- Throws:
WebBeanException- thrown if any error occurs during refreshing.
-
initializeFromSchedule
void initializeFromSchedule(WebSchedule s) throws WebBeanException
Deprecated.Starting with version 9.0 and the advent of Distribution Services, all schedule objects are replaced by subscriptions. Hence please useinitializeFromSubscription(WebSubscription)instead.Initializes the bean using aWebScheduleobject. Thus the bean is setup to a state similar to the scheduled publication.- Parameters:
s- the schedule.- Throws:
WebBeanException- thrown if any error occurs during setting up the bean using the schedule passed.
-
initializeFromSubscription
void initializeFromSubscription(WebSubscription s) throws WebBeanException
Initializes the bean using aWebSubscriptionobject. Thus the bean is setup to a state similar to the subscribed publication.- Parameters:
s- the subscription instance.- Throws:
WebBeanException- thrown if any error occurs during setting up the bean using the subscription passed.
-
getResultSetInstance
WebResultSetInstance getResultSetInstance() throws WebBeanException
Returns the result set instance.- Returns:
- the result set instance.
- Throws:
WebBeanException
-
setDisplayName
void setDisplayName(java.lang.String displayName) throws WebBeanExceptionSet display name of the bean. By default it is doing nothing. For report bean it will update the display name of its underlyingWebMessageby callingcom.microstrategy.web.objects.WebDisplayUnit#setDisplayName()as soon as the prompt is answered, but do not have to wait for the report being executed.- Throws:
WebBeanException- Since:
- MicroStrategy Web 9.0.0
-
isReady
boolean isReady() throws WebBeanException, WebObjectsExceptionIndicates whether the result set is in a "ready" state where results can be retrieved.- Returns:
- True if the data for the result set can be retrieved now; otherwise, false.
- Throws:
WebBeanException- If we are unable to retrieve the result set instance from the bean.WebObjectsException- If we are unable to get the status of the result set instance from the Intelligence Server.
-
-