|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.exolab.jms.tools.migration.proxy.DestinationStore
Provides persistency for JmsDestination instances.
| Field Summary | |
static java.lang.String |
CONSUMER_TABLE
|
static java.lang.String |
DESTINATION_TABLE
|
static java.lang.String |
MESSAGE_HANDLE_TABLE
|
static java.lang.String |
MESSAGE_PROPERTIES_TABLE
|
static java.lang.String |
MESSAGE_TABLE
|
static java.lang.String |
PROPERTIES_TABLE
|
static java.lang.String |
SUBSCRIPTION_TABLE
|
static java.lang.String |
USER_TABLE
|
| Constructor Summary | |
DestinationStore(java.sql.Connection connection)
Construct a new DestinationStore. |
|
| Method Summary | |
void |
add(org.exolab.jms.client.JmsDestination destination)
Add a new destination to the database, assigning it a unique identity. |
StoreIterator |
exportCollection()
Export the destinations. |
org.exolab.jms.client.JmsDestination |
get(long destinationId)
Returns the destination associated with the specified identifier. |
java.util.List |
getDestinations()
Returns the list of destination objects. |
long |
getId(org.exolab.jms.client.JmsDestination destination)
Returns the destination identifier for a given destination. |
void |
importCollection(StoreIterator iterator)
Import destinations into the store. |
protected void |
load()
Load all destinations. |
int |
size()
Returns the number of elements in the collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String PROPERTIES_TABLE
public static final java.lang.String DESTINATION_TABLE
public static final java.lang.String MESSAGE_TABLE
public static final java.lang.String MESSAGE_PROPERTIES_TABLE
public static final java.lang.String CONSUMER_TABLE
public static final java.lang.String SUBSCRIPTION_TABLE
public static final java.lang.String MESSAGE_HANDLE_TABLE
public static final java.lang.String USER_TABLE
| Constructor Detail |
public DestinationStore(java.sql.Connection connection)
throws org.exolab.jms.persistence.PersistenceException
DestinationStore.connection - the database connectionorg.exolab.jms.persistence.PersistenceException - for any persistence error| Method Detail |
public StoreIterator exportCollection()
throws javax.jms.JMSException,
org.exolab.jms.persistence.PersistenceException
exportCollection in interface Storejavax.jms.JMSException - for any JMS errororg.exolab.jms.persistence.PersistenceException - for any persistence error
public void importCollection(StoreIterator iterator)
throws javax.jms.JMSException,
org.exolab.jms.persistence.PersistenceException
importCollection in interface Storeiterator - an iterator over the collectionjavax.jms.JMSException - for any JMS errororg.exolab.jms.persistence.PersistenceException - for any persistence error
public int size()
throws org.exolab.jms.persistence.PersistenceException
size in interface Store
public void add(org.exolab.jms.client.JmsDestination destination)
throws org.exolab.jms.persistence.PersistenceException
destination - the destination to addorg.exolab.jms.persistence.PersistenceException - for any persistence errorpublic org.exolab.jms.client.JmsDestination get(long destinationId)
destinationId - the destination identifiernull if no corresponding
destination existspublic long getId(org.exolab.jms.client.JmsDestination destination)
destination - the destination-1 if no
corresponding destination existspublic java.util.List getDestinations()
javax.jms.Destination instances
protected void load()
throws org.exolab.jms.persistence.PersistenceException
org.exolab.jms.persistence.PersistenceException - for any persistence error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||