|
||||||||||
| 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.Consumers
Provides persistency for Consumer instances.
| Constructor Summary | |
Consumers(Context context)
Construct a new Consumers instance |
|
| Method Summary | |
void |
add(Consumer consumer)
Add a new consumer |
protected void |
addMessages(long consumerId,
long destinationId,
Subscription subscription)
Add messages for a subscription |
protected void |
addSubscriptions(long consumerId,
Consumer consumer)
Add subscriptions for a consumer |
Consumer |
get(long consumerId)
Returns a consumer for a given identifier |
java.util.List |
getConsumerIds()
Returns all consumer identifiers |
protected void |
getMessages(long consumerId,
long destinationId,
Subscription subscription)
Get messages for a subscription |
protected void |
getSubscriptions(long consumerId,
Consumer consumer)
Get subscriptions for a consumer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Consumers(Context context)
Consumers instancecontext - context information| Method Detail |
public void add(Consumer consumer)
throws java.sql.SQLException
consumer - the consumer to addjava.sql.SQLException - if a database error is encountered
public Consumer get(long consumerId)
throws java.sql.SQLException
consumerId - the identity of the consumerconsumerId or
null if no such consumer existsjava.sql.SQLException - if a database error is encountered
public java.util.List getConsumerIds()
throws java.sql.SQLException
java.sql.SQLException - if a database error is encountered
protected void addSubscriptions(long consumerId,
Consumer consumer)
throws java.sql.SQLException
consumerId - the identity of the consumername - the consumer namejava.sql.SQLException - if a database error is encountered
protected void addMessages(long consumerId,
long destinationId,
Subscription subscription)
throws java.sql.SQLException
consumerId - the identity of the consumerdestinationId - the identify of the destinationsubscription - the consumer subscriptionjava.sql.SQLException - if a database error is encountered
protected void getSubscriptions(long consumerId,
Consumer consumer)
throws java.sql.SQLException
consumerId - the identity of the consumerconsumer - the consumer to populatejava.sql.SQLException - if a database error is encountered
protected void getMessages(long consumerId,
long destinationId,
Subscription subscription)
throws java.sql.SQLException
consumerId - the identity of the consumerdestinationId - the identify of the destinationsubscription - the consumer subscriptionjava.sql.SQLException - if a database error is encountered
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||