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

Quick Search    Search Deep

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

java.lang.Object
  extended bycom.RuntimeCollective.content.bean.SimpleContent
      extended bycom.RuntimeCollective.content.bean.TextComponent
          extended bycom.RuntimeCollective.bboard.bean.SimpleBoard
              extended bycom.RuntimeCollective.bboard.bean.SimpleBlog
All Implemented Interfaces:
Blog, Board, com.RuntimeCollective.content.bean.Content, com.RuntimeCollective.webapps.bean.Duplicable, com.RuntimeCollective.webapps.bean.EntityBean, com.RuntimeCollective.webapps.bean.PermissionBean, java.io.Serializable

public class SimpleBlog
extends SimpleBoard
implements Blog

A simple implementation of a Blog.

Version:
$Id: SimpleBlog.java,v 1.4 2003/09/30 15:12:43 joe Exp $

Field Summary
static java.lang.String INTERFACE_BEAN
          The name of the interface that this bean implements, and which may be used to key this bean on the session.
 
Fields inherited from class com.RuntimeCollective.bboard.bean.SimpleBoard
DATABASE_TABLE, LIVE_ORDER, Open, SELECT_ID, T_COMMA, WHERE_BOARD
 
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.bboard.bean.Board
DATABASE_TABLE
 
Fields inherited from interface com.RuntimeCollective.webapps.bean.EntityBean
NULL_ID
 
Constructor Summary
SimpleBlog()
          Default constructor generates a new blank blog.
SimpleBlog(int id)
          Get the given Blog from the database.
 
Method Summary
 Topic getTopic()
          Get the single topic for this Blog.
 
Methods inherited from class com.RuntimeCollective.bboard.bean.SimpleBoard
addTopic, approveAll, archive, canEdit, canView, delete, deleteTopics, getDescription, getDescription, getFaq, getIndexedTopics, getLastUpdated, getNumTopics, getOpen, getTopicList, getTopicListByMessageDate, getTopics, hasUnread, removeTopic, save, setDescription, setDescription, setOpen
 
Methods inherited from class com.RuntimeCollective.content.bean.TextComponent
getFormat, getText, getTitle, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.RuntimeCollective.bboard.bean.Board
addTopic, approveAll, getDescription, getFaq, getIndexedTopics, getOpen, getTopicList, getTopicListByMessageDate, getTopics, hasUnread, removeTopic, setDescription, setOpen
 
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
delete, getId, save, setId
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.Duplicable
customiseDuplicate, makeDuplicate, makeDuplicate
 
Methods inherited from interface com.RuntimeCollective.webapps.bean.PermissionBean
canEdit, canView
 

Field Detail

INTERFACE_BEAN

public static final java.lang.String INTERFACE_BEAN
The name of the interface that this bean implements, and which may be used to key this bean on the session.

See Also:
Constant Field Values
Constructor Detail

SimpleBlog

public SimpleBlog()
           throws java.sql.SQLException
Default constructor generates a new blank blog.


SimpleBlog

public SimpleBlog(int id)
           throws java.sql.SQLException
Get the given Blog from the database.

Method Detail

getTopic

public Topic getTopic()
               throws java.sql.SQLException
Get the single topic for this Blog. If there are no topics for this Blog, then a new one is created.

Blogs may have more than one topic; in which case this method will return the first.

Specified by:
getTopic in interface Blog