Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.bboard.bean
Class AttachmentMessage  view AttachmentMessage download AttachmentMessage.java

java.lang.Object
  extended bycom.RuntimeCollective.content.bean.SimpleContent
      extended bycom.RuntimeCollective.content.bean.TextComponent
          extended bycom.RuntimeCollective.bboard.bean.SimpleMessage
              extended bycom.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 $

Field Summary
private  com.RuntimeCollective.content.bean.File attachment
          The attachment for this message.
 
Fields inherited from class com.RuntimeCollective.bboard.bean.SimpleMessage
DATABASE_TABLE, Flag, INTERFACE_BEAN, ResponseId, TopicId
 
Fields inherited from class com.RuntimeCollective.content.bean.TextComponent
Format, MAX_DESCRIPTION_LENGTH, Text, Title
 
Fields inherited from class com.RuntimeCollective.content.bean.SimpleContent
Author_id, CreationDate, id, LastModifiedDate, LastModifierUser_id
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
NULL_ID
 
Constructor Summary
AttachmentMessage()
          Construct a new message with a new unique id.
AttachmentMessage(int id)
          Get a message from the database for the given id.
 
Method Summary
 void Delete()
          Delete the message and attachment.
 com.RuntimeCollective.content.bean.File getAttachment()
          Get the attachment for this message.
 void save()
          Save the message and attachment.
 void setAttachment(com.RuntimeCollective.content.bean.File attachment)
          Set the attachment for this message.
 
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.TextComponent
getDescription, getFormat, getText, getTitle, setDescription, setFormat, setText, setTextAsHtml, setTitle, viewFormat
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.RuntimeCollective.content.bean.Content
getAuthor, getCreationDate, getDescription, getLastModifiedDate, getLastModifierUser, getTitle, setAuthor, setCreationDate, setDescription, setLastModifiedDate, setLastModifierUser, setTitle, viewFormat
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
getId, setId
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.Duplicable
customiseDuplicate, makeDuplicate, makeDuplicate
 

Field Detail

attachment

private com.RuntimeCollective.content.bean.File attachment
The attachment for this message.

Constructor Detail

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.

Method Detail

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.