|
||||||||||
| 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.Destinations
Provides persistency for JmsDestination instances.
| Constructor Summary | |
Destinations(java.sql.Connection connection)
Construct a new Destinations instance |
|
| Method Summary | |
void |
add(JmsDestination destination)
Add a new destination to the database, assigning it a unique identity. |
void |
close()
Deallocates resources owned or referenced by the instance |
JmsDestination |
get(long destinationId)
Returns the destination associated with the specified identifier |
java.util.List |
getDestinations()
Returns the list of destination objects |
long |
getId(JmsDestination destination)
Returns the destination identifier for a given destination |
protected void |
load()
Load all destinations |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Destinations(java.sql.Connection connection)
throws java.sql.SQLException
Destinations instanceconnection - the database connectionjava.sql.SQLException - if a database error is encountered| Method Detail |
public void add(JmsDestination destination)
throws java.sql.SQLException
destination - the destination to addjava.sql.SQLException - if a database error is encounteredpublic JmsDestination get(long destinationId)
destinationId - the destination identifiernull if no corresponding
destination existspublic long getId(JmsDestination destination)
destination - the destination-1 if no
corresponding destination existspublic java.util.List getDestinations()
javax.jms.Destination instancespublic void close()
protected void load()
throws java.sql.SQLException
java.sql.SQLException - if a database error is encountered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||