org.paneris.messageboard.model
Class Attachment

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable
          extended by org.paneris.util.ExtendedHash
              extended by org.paneris.jal.model.DDRecord
                  extended by org.paneris.messageboard.model.Attachment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class Attachment
extends DDRecord

An item on the messageboard.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.paneris.jal.model.DDRecord
connMgr, database, dataCache, debug, metaData
 
Constructor Summary
Attachment(java.lang.String db)
          Constructor to build an empty DDRecord
Attachment(java.lang.String db, java.lang.Integer record)
          Constructor to build a DDRecord given a string or int describing the table and an record id int.
Attachment(java.lang.String db, java.sql.ResultSet rs)
          Constructor to build a DDRecord given a string describing the table and a java.sql.resultSet.
 
Method Summary
 java.lang.String getAttachmentPath()
           
 java.lang.String getSize()
          get the size.
 void setBoard(java.lang.Integer b)
          Set the board.
 void setData(byte[] data_)
          Set data.
 void write()
          Write the file as well as the record.
 
Methods inherited from class org.paneris.jal.model.DDRecord
appendFieldValue, delete, get, getChildren, getField, getFieldValue, getLinksToThis, getLinksToThis, getMetaData, getOrderedChildren, getProblems, getResultSet, init, isDuplicated, setFieldValue, setFieldValue, setFromDefaults, setFromForm, setFromForm, setFromForm, write
 
Methods inherited from class org.paneris.util.ExtendedHash
clear, elements, joinKeys, keys, put, remove
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(java.lang.String db,
                  java.sql.ResultSet rs)
           throws java.lang.Exception
Constructor to build a DDRecord given a string describing the table and a java.sql.resultSet.

Throws:
java.lang.Exception

Attachment

public Attachment(java.lang.String db)
           throws java.lang.Exception
Constructor to build an empty DDRecord

Throws:
java.lang.Exception - if something fails

Attachment

public Attachment(java.lang.String db,
                  java.lang.Integer record)
           throws java.lang.Exception
Constructor to build a DDRecord given a string or int describing the table and an record id int. If you don't have a record id, send it in as null.

Throws:
java.lang.Exception - If somthing fails
Method Detail

setData

public void setData(byte[] data_)
Set data.


setBoard

public void setBoard(java.lang.Integer b)
Set the board.


getSize

public java.lang.String getSize()
get the size.


getAttachmentPath

public java.lang.String getAttachmentPath()
                                   throws java.lang.Exception
Throws:
java.lang.Exception

write

public void write()
           throws java.lang.Exception
Write the file as well as the record.

Overrides:
write in class DDRecord
Throws:
java.lang.Exception - if somthing fails


Copyright © 2000-2008 PanEris. All Rights Reserved.