java.lang.Object
com.RuntimeCollective.content.bean.SimpleContent
com.RuntimeCollective.content.bean.TextComponent
com.RuntimeCollective.bboard.bean.SimpleMessage
com.RuntimeCollective.bboard.bean.AttachmentMessage
- All Implemented Interfaces:
- java.lang.Cloneable, com.RuntimeCollective.content.bean.Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, Message, java.io.Serializable
- public class AttachmentMessage
- extends SimpleMessage
A message that includes a reference to an optional attachment File.
- Version:
- $Id: AttachmentMessage.java,v 1.5 2003/09/30 15:12:43 joe Exp $
| Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean |
NULL_ID |
| Methods inherited from class com.RuntimeCollective.bboard.bean.SimpleMessage |
clone, clone, delete, getContent, getContent, getFlag, getResponse, getResponseId, getTopic, isNew, setContent, setContent, setFlag, setResponse, setResponseId, setTopic |
| Methods inherited from class com.RuntimeCollective.content.bean.SimpleContent |
customiseDuplicate, getAuthor, getCreationDate, getId, getLastModifiedDate, getLastModifierUser, makeDuplicate, makeDuplicate, setAuthor, setCreationDate, setId, setLastModifiedDate, setLastModifierUser |
| Methods inherited from interface com.RuntimeCollective.content.bean.Content |
getAuthor, getCreationDate, getDescription, getLastModifiedDate, getLastModifierUser, getTitle, setAuthor, setCreationDate, setDescription, setLastModifiedDate, setLastModifierUser, setTitle, viewFormat |
attachment
private com.RuntimeCollective.content.bean.File attachment
- The attachment for this message.
AttachmentMessage
public AttachmentMessage()
throws java.sql.SQLException
- Construct a new message with a new unique id.
AttachmentMessage
public AttachmentMessage(int id)
throws java.sql.SQLException
- Get a message from the database for the given id.
getAttachment
public com.RuntimeCollective.content.bean.File getAttachment()
- Get the attachment for this message.
setAttachment
public void setAttachment(com.RuntimeCollective.content.bean.File attachment)
- Set the attachment for this message.
save
public void save()
throws java.sql.SQLException
- Save the message and attachment.
- Specified by:
save in interface com.RuntimeCollective.webapps.bean.EntityBean- Overrides:
save in class SimpleMessage
Delete
public void Delete()
throws java.sql.SQLException
- Delete the message and attachment.