public class MessageData extends MessageDataObject implements MessageProvider, Removable
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageData.Factory<M extends MessageData>
A Factory for
MessageData
This is not actually needed by the application but makes the
tests easier to write as these rely on a handler factory |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_TABLE |
DEBUG, recordMAX_IDENTIFIER| Constructor and Description |
|---|
MessageData(AppContext conn,
int id) |
MessageData(AppContext conn,
MimeMessage m) |
MessageData(Repository.Record rec) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkTable(AppContext conn)
A method to bootstrap the table (for unit tests)
|
MessageData |
copy() |
void |
remove()
This method removes the record
It should delete any dependent data then call
DataObject.delete() |
anonymise, getMessage, getMessageHash, getMessageID, getRecipients, getSender, getSubject, getTableSpecification, pre_commit, setMessageaddToMap, addToMap, addToMap, commit, delete, empty, equals, formUpdate, getContext, getDatabaseService, getFactoryTag, getID, getIdentifier, getIdentifier, getLogger, getMap, getMap, getOwningFactory, getRecord, getRecord, getRecord, getSQLContext, getUniqueIdName, hashCode, isLocked, lock, post_commit, postCreate, release, setContents, setDirty, setMap, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcommit, getMessage, getMessageHash, getRecipients, getSender, getSubject, setMessagepublic static final java.lang.String DEFAULT_TABLE
public MessageData(Repository.Record rec)
public MessageData(AppContext conn, int id) throws DataException
DataExceptionpublic MessageData(AppContext conn, MimeMessage m)
public static void checkTable(AppContext conn) throws DataFault
conn - DataFaultpublic void remove()
throws DataException
RemovableDataObject.delete()remove in interface RemovableDataExceptionpublic MessageData copy() throws DataFault, MessagingException
DataFaultMessagingException