| org.datashare.PersistDataCallbackInterface
All known Subclasses: org.datashare.ClientInfo, org.datashare.ConsumerInfo, org.datashare.ChannelInfo, org.datashare.SessionInfo,
PersistDataCallbackInterface | public interface PersistDataCallbackInterface (Code) | | Defines the methods that allow a class that wishes to create an EJB in background to be notified
when the EJB has been completed. This includes a method that lets us know the EJB is currently
in creation, and methods that allow the EJB that was created to have it's key value returned.
author: Charles Wood version: 1.0 |
Method Summary | |
void | setDatabaseID(String databaseID) called by the class that creates the EJB after the EJB has been created and the
ADSKey String that corresponds to it has been made available. | void | setKeyHasBeenReturned(boolean value) Used to set the value that represents if the EJB has been created and it's
corresponding ADSKey value set into the invoking class via the setADSKey() method. | void | setWaitingForKey(boolean value) Indicates the status of the EJB that was requested to be created: this method
is called with a true value while we are waiting for the EJB to be created, and
set to false after the EJB has been created and it's ADSKey String value has been
returned via the setEjbId method. |
setDatabaseID | void setDatabaseID(String databaseID)(Code) | | called by the class that creates the EJB after the EJB has been created and the
ADSKey String that corresponds to it has been made available.
Parameters: databaseID - the ADSKey String for the EJB that was created |
setKeyHasBeenReturned | void setKeyHasBeenReturned(boolean value)(Code) | | Used to set the value that represents if the EJB has been created and it's
corresponding ADSKey value set into the invoking class via the setADSKey() method.
Parameters: value - true if the ADSKey has been returned, false if we are stillwaiting |
setWaitingForKey | void setWaitingForKey(boolean value)(Code) | | Indicates the status of the EJB that was requested to be created: this method
is called with a true value while we are waiting for the EJB to be created, and
set to false after the EJB has been created and it's ADSKey String value has been
returned via the setEjbId method. Note that to truly determine if the ADSKey String
value has been completed, this method will return a false and the method
getKeyHasBeenReturned will return true.
Parameters: value - true if the EJB has not been completed, false otherwise. |
|
|