com.ontimize.util.messaging
Class DBMailbox
java.lang.Object
com.ontimize.util.messaging.AbstractMailbox
com.ontimize.util.messaging.DBMailbox
- All Implemented Interfaces:
- Mailbox
- public class DBMailbox
- extends AbstractMailbox
Mail box that stores messages in a database table.
- Author:
- Imatia Innovation
|
Field Summary |
protected java.sql.Connection |
connection
|
|
Constructor Summary |
DBMailbox(java.sql.Connection con,
java.lang.String propertiesFile)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
connection
protected java.sql.Connection connection
DBMailbox
public DBMailbox(java.sql.Connection con,
java.lang.String propertiesFile)
throws java.lang.Exception
put
public void put(java.lang.Object message)
- Specified by:
put in interface Mailbox- Specified by:
put in class AbstractMailbox
getMessages
public java.util.Vector getMessages()
- Specified by:
getMessages in interface Mailbox- Specified by:
getMessages in class AbstractMailbox
remove
public void remove(java.lang.Object message)
- Specified by:
remove in interface Mailbox- Specified by:
remove in class AbstractMailbox
getMessageCount
public int getMessageCount()
removeAll
public void removeAll()
- Specified by:
removeAll in interface Mailbox- Specified by:
removeAll in class AbstractMailbox