|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.jms.tools.migration.proxy.DestinationStore
public class 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 connection
org.exolab.jms.persistence.PersistenceException
- for any persistence errorMethod Detail |
---|
public StoreIterator exportCollection() throws javax.jms.JMSException, org.exolab.jms.persistence.PersistenceException
exportCollection
in interface Store
javax.jms.JMSException
- for any JMS error
org.exolab.jms.persistence.PersistenceException
- for any persistence errorpublic void importCollection(StoreIterator iterator) throws javax.jms.JMSException, org.exolab.jms.persistence.PersistenceException
importCollection
in interface Store
iterator
- an iterator over the collection
javax.jms.JMSException
- for any JMS error
org.exolab.jms.persistence.PersistenceException
- for any persistence errorpublic int size() throws org.exolab.jms.persistence.PersistenceException
size
in interface Store
org.exolab.jms.persistence.PersistenceException
- for any persistence errorpublic void add(org.exolab.jms.client.JmsDestination destination) throws org.exolab.jms.persistence.PersistenceException
destination
- the destination to add
org.exolab.jms.persistence.PersistenceException
- for any persistence errorpublic org.exolab.jms.client.JmsDestination get(long destinationId)
destinationId
- the destination identifier
null
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
instancesprotected 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |