com.opencms.modules.homepage.news
Class NewsBean

java.lang.Object
  |
  +--com.opencms.modules.homepage.news.NewsBean
All Implemented Interfaces:
java.io.Serializable

public class NewsBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
NewsBean()
          Creates new NewsBean
 
Method Summary
 void destroy()
           
 java.util.Vector getList()
          Returns all news items regardless of channel
 java.util.Vector getList(int channel)
          Returns all news items specific to channel
 NewsItem getNews(int newsID)
          Returns a NewsItem bean specific to its id
 void init()
           
 NewsItem makeNewsItem(java.sql.ResultSet results)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsBean

public NewsBean()
Creates new NewsBean

Method Detail

init

public void init()

getList

public java.util.Vector getList()
Returns all news items regardless of channel


getList

public java.util.Vector getList(int channel)
Returns all news items specific to channel


getNews

public NewsItem getNews(int newsID)
Returns a NewsItem bean specific to its id


destroy

public void destroy()

makeNewsItem

public NewsItem makeNewsItem(java.sql.ResultSet results)
                      throws java.sql.SQLException
java.sql.SQLException