| java.lang.Object com.Yasna.forum.database.DbForumMessage
DbForumMessage | final public class DbForumMessage implements ForumMessage,Cacheable(Code) | | Database implementation of the ForumMessage interface. It stores messages
in the YazdMessage database table, and message properties in yazdMessageProp
table.
|
DbForumMessage | protected DbForumMessage(User user, DbForumFactory factory)(Code) | | Creates a new dummy DbForumMessage object.
this is used to obtain the filtered message
|
getReplyPrivateUserId | public int getReplyPrivateUserId()(Code) | | |
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) | | |
isPrivate | public boolean isPrivate()(Code) | | |
toString | public String toString()(Code) | | Returns a String representation of the message object using the subject.
a String representation of the ForumMessage object. |
|
|