|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--oracle.dss.thin.state.BIStateManager
A StateManager that stores states as objects in the BI Beans Catalog.
The BIStateManager maintains an in-memory FIFO queue of a predetermined length. If the BIStateManager does not find a State by ID in the queue, then it loads the State from the BI Beans Catalog.
To ensure that state IDs are always unique, the BIStateManager uses GUIDs for state IDs. It uses the state ID as the name of the State object in the BI Beans Catalog. The state's object type is oracle.dss.util.persistence.PersistableConstants.URLSTATE.
PersistableConstants.Attributes.OBJECT_TYPE, Serialized Form| Constructor Summary | |
BIStateManager()Creates a BIStateManager of a default queue size (20 states). | |
BIStateManager(BIContext context)Creates a BIStateManager of a default queue size (20 states). | |
BIStateManager(BIContext context, int queueSize)Creates a BIStateManager with the specified queue size. | |
| Method Summary | |
void |
addErrorHandler(ErrorHandler eh)Adds a single error handler to the bean. |
void |
expire()Invalidates this BIStateManager and all of its child State objects. |
BIContext |
getBIContext()Retrieves the state folder for this BIStateManager. |
oracle.cabo.servlet.state.MutableState |
getNewState()Creates a new MutableState object. |
oracle.cabo.servlet.state.State |
getState(java.lang.String id)Retrieves the State object that has a specified ID. |
boolean |
isExpired()Indicates whether this BIStateManager has expired. |
void |
removeErrorHandler()Removes the error handler from the bean. |
void |
saveState(oracle.cabo.servlet.state.State state)Saves a State to the BI Beans Catalog. |
void |
setBIContext(BIContext context)Specifies the folder for storing states. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BIStateManager()
BIStateManager of a default queue size (20 states). In order to support saving and loading states from the BI Beans Catalog, you must also set the BIContext for this BIStateManager.public BIStateManager(BIContext context)
BIStateManager of a default queue size (20 states).context - The folder for storing state objects.
public BIStateManager(BIContext context,
int queueSize)
BIStateManager with the specified queue size.context - The folder for storing state objects.queueSize - The number of states to store in the queue.| Method Detail |
public void setBIContext(BIContext context)
context - The folder for storing states.public BIContext getBIContext()
BIStateManager.public void addErrorHandler(ErrorHandler eh)
ErrorHandlerCallbackaddErrorHandler in interface ErrorHandlerCallbackoracle.dss.util.ErrorHandlerCallbackeh - The error handler to add.public void removeErrorHandler()
ErrorHandlerCallbackremoveErrorHandler in interface ErrorHandlerCallbackpublic oracle.cabo.servlet.state.State getState(java.lang.String id)
State object that has a specified ID. This method looks in the state queue first. If the state is not in the queue, then this method looks in the BI Beans Catalog, in the folder that is specified as the BIContext for this BIStateManager.getState in interface oracle.cabo.servlet.state.StateManagerid - The ID of the State object that you want to retrieve.State that has the specified ID, or null if the state is not found.
public void saveState(oracle.cabo.servlet.state.State state)
throws javax.naming.NamingException
State to the BI Beans Catalog. A State cannot be saved more than once, so after you save a State has been saved, do not set any properties of the State object.
The persistable object type of the saved State object is oracle.dss.util.persistence.PersistableConstants.URLSTATE.
state - The State object to save.javax.naming.NamingException - If the State could not be saved.public void expire()
BIStateManager and all of its child State objects. After a StateManager has been invalidated, it can no longer be used to retrieve States.expire in interface oracle.cabo.servlet.state.StateManagerpublic boolean isExpired()
BIStateManager has expired.isExpired in interface oracle.cabo.servlet.state.StateManagertrue if this BIStateManager has expired, false if it can still retrieve State objects.public oracle.cabo.servlet.state.MutableState getNewState()
MutableState object. To save the State object to the BI Beans Catalog, call saveState.
This method throws an IllegalStateException if this BIStateManager has expired.
getNewState in interface oracle.cabo.servlet.state.StateManagerMutableState object that has a unique ID.saveState(oracle.cabo.servlet.state.State)
|
Oracle™ Business Intelligence Beans Java API Reference | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||