| java.lang.Object org.datashare.RetreiveDataBeans
RetreiveDataBeans | public class RetreiveDataBeans (Code) | | This class is used to retreive the DataShare Data (DataShareObjects) for
the specified Channel, and the count of Data objects in the channel. Note
that data is stored as byte arrays that represent a DataShareObject instance.
version: 2.0 author: Chuck Wood |
Method Summary | |
public void | cancelHistory() | public static DataShareObject | getData(PersistenceInterface p0, String channelKeyForData, int sequenceNumber) retrieves the DataShareObject for a channel that has the specified sequence number,
and returns null if no bean by that number is available (i.e. | public static int | getDataCount(PersistenceInterface p0, String channelKeyForData) retreives the number of all the Data EJB objects for the Channel Key that was provided. | public synchronized DataShareObject[] | getNextData(int count) retreives the DataShareObjects for a channel, note that retrieveAllData must have been
called before this method. | public synchronized void | retrieveAllData(PersistenceInterface p0, String channelKeyForData) should be called only once to retrieve all the Data (stored locally) currently
available for the channel, then subsequent calls to getNextData will actually
return the data. |
RetreiveDataBeans | public RetreiveDataBeans()(Code) | | constructor, not required as this class also has static methods
|
cancelHistory | public void cancelHistory()(Code) | | |
getData | public static DataShareObject getData(PersistenceInterface p0, String channelKeyForData, int sequenceNumber)(Code) | | retrieves the DataShareObject for a channel that has the specified sequence number,
and returns null if no bean by that number is available (i.e. no more beans)
|
getDataCount | public static int getDataCount(PersistenceInterface p0, String channelKeyForData)(Code) | | retreives the number of all the Data EJB objects for the Channel Key that was provided.
Parameters: channelKeyForData - the ADSkey value for the Channel whose data shouldbe retreived a count of the Data objects that would be retrieved by agetData() call |
getNextData | public synchronized DataShareObject[] getNextData(int count)(Code) | | retreives the DataShareObjects for a channel, note that retrieveAllData must have been
called before this method. The data is returned in order, subsequent calls just
return the next 'chunk' of data.
Parameters: count - the number of DataShareObjects to return an array of DataShareObjects, should contain 'count' number, may be less ifthere is not enough data less, may be zero size if there is no data left. |
retrieveAllData | public synchronized void retrieveAllData(PersistenceInterface p0, String channelKeyForData)(Code) | | should be called only once to retrieve all the Data (stored locally) currently
available for the channel, then subsequent calls to getNextData will actually
return the data. Subsequent calls on an instance will cause the getNextData call to
start back at the beginning of the data.
|
|
|