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(RssFeed rssFeed)
          Delete a record from the table
 void insert(RssFeed rssFeed)
          Insert a new record in the table.
 RssFeed load(int nRssFeedId, boolean bActive)
          Load the data of RssFeed from the table
 int newPrimaryKey(boolean bActive)
          Generates a new primary key either in the active feed table or in the inactive feed one
 fr.paris.lutece.util.ReferenceList selectRssFeedReferenceList(boolean bActive)
          Load the list of rssFeeds
 java.util.List<RssFeed> selectRssFeeds(boolean bActive)
          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

newPrimaryKey

public int newPrimaryKey(boolean bActive)
Generates a new primary key either in the active feed table or in the inactive feed one

Specified by:
newPrimaryKey in interface IRssFeedDAO
Parameters:
bActive - true for the active feed table
Returns:
The new primary key

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,
                    boolean bActive)
Load the data of RssFeed from the table

Specified by:
load in interface IRssFeedDAO
Parameters:
nRssFeedId - The identifier of RssFeed
bActive - true if the field is active
Returns:
the instance of the RssFeed

delete

public void delete(RssFeed rssFeed)
Delete a record from the table

Specified by:
delete in interface IRssFeedDAO
Parameters:
rssFeed - the feed to delete

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(boolean bActive)
Load the list of rssFeeds

Specified by:
selectRssFeeds in interface IRssFeedDAO
Parameters:
bActive - true if the field is active
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(boolean bActive)
Load the list of rssFeeds

Specified by:
selectRssFeedReferenceList in interface IRssFeedDAO
Parameters:
bActive - true for active feeds
Returns:
A referenceList representing the RssFeeds


Copyright © 2011 Mairie de Paris. All Rights Reserved.