fr.paris.lutece.portal.business.portlet
Class PortletTypeDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.portlet.PortletTypeDAO
All Implemented Interfaces:
IPortletTypeDAO

public final class PortletTypeDAO
extends java.lang.Object
implements IPortletTypeDAO

This class provides Data Access methods for PortletType objects


Constructor Summary
PortletTypeDAO()
           
 
Method Summary
 void delete(java.lang.String strPortletTypeId)
          Delete a record from the table
 void insert(PortletType portletType)
          Insert a new record in the table PortletType
 PortletType load(java.lang.String strPortletTypeId)
          Load the data of PortletType from the table
 int selectNbPortletTypeByPortlet(java.lang.String strPortletTypeId)
          Returns the portlet count for a given provider
 ReferenceList selectPortletsTypesList(java.util.Locale locale)
          Return a Reference List of portletType
 java.lang.String selectPortletTypeId(java.lang.String strPluginHomeClass)
          Returns the portlet type identifier
 java.util.List<PortletType> selectPortletTypesList()
          Returns the list of the portlet types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletTypeDAO

public PortletTypeDAO()
Method Detail

insert

public void insert(PortletType portletType)
Description copied from interface: IPortletTypeDAO
Insert a new record in the table PortletType

Specified by:
insert in interface IPortletTypeDAO
Parameters:
portletType - The portlet Type object

load

public PortletType load(java.lang.String strPortletTypeId)
Description copied from interface: IPortletTypeDAO
Load the data of PortletType from the table

Specified by:
load in interface IPortletTypeDAO
Parameters:
strPortletTypeId - The identifier of PortletType
Returns:
The instance of the PortletType

delete

public void delete(java.lang.String strPortletTypeId)
Description copied from interface: IPortletTypeDAO
Delete a record from the table

Specified by:
delete in interface IPortletTypeDAO
Parameters:
strPortletTypeId - The POrtletTYpe identifier

selectPortletTypeId

public java.lang.String selectPortletTypeId(java.lang.String strPluginHomeClass)
Description copied from interface: IPortletTypeDAO
Returns the portlet type identifier

Specified by:
selectPortletTypeId in interface IPortletTypeDAO
Parameters:
strPluginHomeClass - the name of the portlet type
Returns:
the identifier of the portlet type

selectNbPortletTypeByPortlet

public int selectNbPortletTypeByPortlet(java.lang.String strPortletTypeId)
Description copied from interface: IPortletTypeDAO
Returns the portlet count for a given provider

Specified by:
selectNbPortletTypeByPortlet in interface IPortletTypeDAO
Parameters:
strPortletTypeId - The provider's identifier
Returns:
nCount

selectPortletsTypesList

public ReferenceList selectPortletsTypesList(java.util.Locale locale)
Description copied from interface: IPortletTypeDAO
Return a Reference List of portletType

Specified by:
selectPortletsTypesList in interface IPortletTypeDAO
Returns:
list The reference List

selectPortletTypesList

public java.util.List<PortletType> selectPortletTypesList()
Description copied from interface: IPortletTypeDAO
Returns the list of the portlet types

Specified by:
selectPortletTypesList in interface IPortletTypeDAO
Returns:
the list of the portlet types


Copyright © 2007 Mairie de Paris. All Rights Reserved.