org.exolab.jms.tools.migration
Interface Store

All Known Implementing Classes:
MasterUserStore, MasterDestinationStore, MasterConsumerStore, MasterMessageStore, ConsumerStore, MessageStore, DestinationStore, UserStore

public interface Store

Store represents a persistent collection. It provides an API for importing and exporting the collection.

Version:
$Revision: 1.1 $ $Date: 2005/09/04 07:07:12 $
Author:
Tim Anderson

Method Summary
 StoreIterator exportCollection()
          Export the collection.
 void importCollection(StoreIterator iterator)
          Import a collection.
 int size()
          Returns the number of elements in the collection.
 

Method Detail

exportCollection

public StoreIterator exportCollection()
                               throws javax.jms.JMSException,
                                      org.exolab.jms.persistence.PersistenceException
Export the collection.
Returns:
an iterator over the collection
Throws:
javax.jms.JMSException - for any JMS error
org.exolab.jms.persistence.PersistenceException - for any persistence error

importCollection

public void importCollection(StoreIterator iterator)
                      throws javax.jms.JMSException,
                             org.exolab.jms.persistence.PersistenceException
Import a collection.
Parameters:
iterator - an iterator over the collection
Throws:
javax.jms.JMSException - for any JMS error
org.exolab.jms.persistence.PersistenceException - for any persistence error

size

public int size()
         throws org.exolab.jms.persistence.PersistenceException
Returns the number of elements in the collection.
Returns:
the number of elements in the collection
Throws:
org.exolab.jms.persistence.PersistenceException - for any persistence error


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.