fr.paris.lutece.plugins.rss.business
Class RssFeedDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.rss.business.RssFeedDAO
All Implemented Interfaces:
IRssFeedDAO

public final class RssFeedDAO
extends java.lang.Object
implements IRssFeedDAO

This class provides Data Access methods for RssFeed objects


Constructor Summary
RssFeedDAO()
           
 
Method Summary
 boolean checkUrlNotUsed(java.lang.String strUrl)
          Checks whether url referenced is pointed as an external feed
 void delete(int nId)
          Delete a record from the table
 void insert(RssFeed rssFeed)
          Insert a new record in the table.
 RssFeed load(int nRssFeedId)
          Load the data of RssFeed from the table
 fr.paris.lutece.util.ReferenceList selectRssFeedReferenceList()
          Load the list of rssFeeds
 java.util.List<RssFeed> selectRssFeeds()
          Load the list of rssFeeds
 void store(RssFeed rssFeed)
          Update the record in the table
 void storeLastFetchInfos(RssFeed rssFeed)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RssFeedDAO

public RssFeedDAO()
Method Detail

insert

public void insert(RssFeed rssFeed)
Insert a new record in the table.

Specified by:
insert in interface IRssFeedDAO
Parameters:
rssFeed - The rssFeed object

load

public RssFeed load(int nRssFeedId)
Load the data of RssFeed from the table

Specified by:
load in interface IRssFeedDAO
Parameters:
nRssFeedId - The identifier of RssFeed
Returns:
the instance of the RssFeed

delete

public void delete(int nId)
Delete a record from the table

Specified by:
delete in interface IRssFeedDAO
Parameters:
nId - Delete the rss feed

store

public void store(RssFeed rssFeed)
Update the record in the table

Specified by:
store in interface IRssFeedDAO
Parameters:
rssFeed - The reference of rssFeed

storeLastFetchInfos

public void storeLastFetchInfos(RssFeed rssFeed)
Update the record in the table

Specified by:
storeLastFetchInfos in interface IRssFeedDAO
Parameters:
rssFeed - The reference of rssFeed

selectRssFeeds

public java.util.List<RssFeed> selectRssFeeds()
Load the list of rssFeeds

Specified by:
selectRssFeeds in interface IRssFeedDAO
Returns:
The List of the RssFeeds

checkUrlNotUsed

public boolean checkUrlNotUsed(java.lang.String strUrl)
Checks whether url referenced is pointed as an external feed

Specified by:
checkUrlNotUsed in interface IRssFeedDAO
Parameters:
strUrl - The url to be tested
Returns:
The boolean result

selectRssFeedReferenceList

public fr.paris.lutece.util.ReferenceList selectRssFeedReferenceList()
Load the list of rssFeeds

Specified by:
selectRssFeedReferenceList in interface IRssFeedDAO
Returns:
A referenceList representing the RssFeeds


Copyright © 2007 Mairie de Paris. All Rights Reserved.