| java.lang.Object org.nemesis.forum.impl.DbForumMessage
DbForumMessage | final public class DbForumMessage implements Message,Cacheable(Code) | | Database implementation of the ForumMessage interface. It stores messages
in the Message database table, and message properties in JiveMessageProp
table.
|
Field Summary | |
protected boolean | approved | protected static Log | log |
approved | protected boolean approved(Code) | | |
log | protected static Log log(Code) | | |
DbForumMessage | protected DbForumMessage(User user, boolean approved, ForumFactory factory)(Code) | | Creates a new DbForumMessage object.
|
getSize | public int getSize()(Code) | | |
getUnfilteredSubject | public String getUnfilteredSubject()(Code) | | |
hasPermission | public boolean hasPermission(int type)(Code) | | |
hashCode | public int hashCode()(Code) | | |
insertIntoDb | public void insertIntoDb(Connection con, ForumThread thread) throws SQLException(Code) | | Inserts a new message into the database. A connection object must
be passed in. The connection must be open when passed in, and will
remain open when passed back. This method allows us to make insertions
be transactional.
Parameters: con - an open Connection used to insert the thread to the db. Parameters: thread - the ForumThread the message is being added to. |
isAnonymous | public boolean isAnonymous()(Code) | | |
isApproved | public boolean isApproved()(Code) | | |
toString | public String toString()(Code) | | Returns a String representation of the message object using the subject.
a String representation of the ForumMessage object. |
|
|