fr.paris.lutece.plugins.whatsnew.business.portlet
Class WhatsNewPortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.whatsnew.business.portlet.WhatsNewPortletDAO
All Implemented Interfaces:
IWhatsNewPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public final class WhatsNewPortletDAO
extends java.lang.Object
implements IWhatsNewPortletDAO

This class provides Data Access methods for WhatsNewPortlet objects


Constructor Summary
WhatsNewPortletDAO()
           
 
Method Summary
 void delete(int nPortletId)
          Delete a record from the table
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert a new record in the table whatsnew_portlet
 fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
          Loads the data of What's new Portlet whose identifier is specified in parameter
 void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          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

WhatsNewPortletDAO

public WhatsNewPortletDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Insert a new record in the table whatsnew_portlet

Specified by:
insert in interface IWhatsNewPortletDAO
Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - the instance of the Portlet object to insert

delete

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

Specified by:
delete in interface IWhatsNewPortletDAO
Specified by:
delete in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - The identifier of the portlet

load

public fr.paris.lutece.portal.business.portlet.Portlet load(int nPortletId)
Loads the data of What's new Portlet whose identifier is specified in parameter

Specified by:
load in interface IWhatsNewPortletDAO
Specified by:
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nPortletId - The Portlet identifier
Returns:
the whatsNew object

store

public void store(fr.paris.lutece.portal.business.portlet.Portlet portlet)
Update the record in the table

Specified by:
store in interface IWhatsNewPortletDAO
Specified by:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The instance of the object portlet


Copyright © 2008 Mairie de Paris. All Rights Reserved.