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, record
MAX_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, setMessage
addToMap, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
commit, getMessage, getMessageHash, getRecipients, getSender, getSubject, setMessage
public static final java.lang.String DEFAULT_TABLE
public MessageData(Repository.Record rec)
public MessageData(AppContext conn, int id) throws DataException
DataException
public MessageData(AppContext conn, MimeMessage m)
public static void checkTable(AppContext conn) throws DataFault
conn
- DataFault
public void remove() throws DataException
Removable
DataObject.delete()
remove
in interface Removable
DataException
public MessageData copy() throws DataFault, MessagingException
DataFault
MessagingException