org.exolab.jms.tools.migration.proxy
Class UserStore
java.lang.Object
|
+--org.exolab.jms.tools.migration.proxy.UserStore
- All Implemented Interfaces:
- org.exolab.jms.tools.migration.proxy.DBConstants, Store
- public class UserStore
- extends java.lang.Object
- implements Store, org.exolab.jms.tools.migration.proxy.DBConstants
Provides persistency for User
instances.
- Version:
- $Revision: 1.1 $ $Date: 2005/10/20 14:07:03 $
- Author:
- Tim Anderson
Constructor Summary |
UserStore(java.sql.Connection connection)
Construct a new UserStore . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROPERTIES_TABLE
public static final java.lang.String PROPERTIES_TABLE
DESTINATION_TABLE
public static final java.lang.String DESTINATION_TABLE
MESSAGE_TABLE
public static final java.lang.String MESSAGE_TABLE
MESSAGE_PROPERTIES_TABLE
public static final java.lang.String MESSAGE_PROPERTIES_TABLE
CONSUMER_TABLE
public static final java.lang.String CONSUMER_TABLE
SUBSCRIPTION_TABLE
public static final java.lang.String SUBSCRIPTION_TABLE
MESSAGE_HANDLE_TABLE
public static final java.lang.String MESSAGE_HANDLE_TABLE
USER_TABLE
public static final java.lang.String USER_TABLE
UserStore
public UserStore(java.sql.Connection connection)
- Construct a new
UserStore
.
- Parameters:
connection
- the database connection
exportCollection
public StoreIterator exportCollection()
throws javax.jms.JMSException,
org.exolab.jms.persistence.PersistenceException
- Export the users.
- Specified by:
exportCollection
in interface Store
- Returns:
- an iterator over the collection
- Throws:
javax.jms.JMSException
- for any JMS errororg.exolab.jms.persistence.PersistenceException
- for any persistence error
importCollection
public void importCollection(StoreIterator iterator)
throws javax.jms.JMSException,
org.exolab.jms.persistence.PersistenceException
- Import users into the store.
- Specified by:
importCollection
in interface Store
- Parameters:
iterator
- an iterator over the collection- Throws:
javax.jms.JMSException
- for any JMS errororg.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.
- Specified by:
size
in interface Store
- 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.