|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable org.paneris.util.ExtendedHash org.paneris.jal.model.DDRecord org.paneris.messageboard.model.Attachment
public class Attachment
An item on the messageboard.
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 |
---|
public Attachment(java.lang.String db, java.sql.ResultSet rs) throws java.lang.Exception
java.lang.Exception
public Attachment(java.lang.String db) throws java.lang.Exception
java.lang.Exception
- if something failspublic Attachment(java.lang.String db, java.lang.Integer record) throws java.lang.Exception
java.lang.Exception
- If somthing failsMethod Detail |
---|
public void setData(byte[] data_)
public void setBoard(java.lang.Integer b)
public java.lang.String getSize()
public java.lang.String getAttachmentPath() throws java.lang.Exception
java.lang.Exception
public void write() throws java.lang.Exception
write
in class DDRecord
java.lang.Exception
- if somthing fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |