fr.paris.lutece.plugins.jasper.business.portlet
Class JasperPortletDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.jasper.business.portlet.JasperPortletDAO
All Implemented Interfaces:
IJasperPortletDAO, fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO

public final class JasperPortletDAO
extends java.lang.Object
implements IJasperPortletDAO

this class provides Data Access methods for JasperPortlet objects


Constructor Summary
JasperPortletDAO()
           
 
Method Summary
 boolean checkNoPortletLinked(int nIdJasperFeed)
          Checks if a feed is linked to a portlet
 void delete(int nPortletId)
          Delete record from table
 void insert(fr.paris.lutece.portal.business.portlet.Portlet portlet)
          Insert a new record in the table.
 fr.paris.lutece.portal.business.portlet.Portlet load(int nIdPortlet)
          load the data of dbpagePortlet from the table
 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

JasperPortletDAO

public JasperPortletDAO()
Method Detail

insert

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

Specified by:
insert in interface IJasperPortletDAO
Specified by:
insert in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The Instance of the Portlet

delete

public void delete(int nPortletId)
Delete record from table

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

store

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

Specified by:
store in interface IJasperPortletDAO
Specified by:
store in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
portlet - The reference of the portlet

load

public fr.paris.lutece.portal.business.portlet.Portlet load(int nIdPortlet)
load the data of dbpagePortlet from the table

Specified by:
load in interface IJasperPortletDAO
Specified by:
load in interface fr.paris.lutece.portal.business.portlet.IPortletInterfaceDAO
Parameters:
nIdPortlet - The identifier of the portlet
Returns:
portlet The instance of the object portlet

checkNoPortletLinked

public boolean checkNoPortletLinked(int nIdJasperFeed)
Checks if a feed is linked to a portlet

Specified by:
checkNoPortletLinked in interface IJasperPortletDAO
Parameters:
nIdJasperFeed - The identifier of the Jasper feed
Returns:
A boolean


Copyright © 2012 Mairie de Paris. All Rights Reserved.