fr.paris.lutece.portal.business.portalcomponent
Class PortalComponentDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.portalcomponent.PortalComponentDAO
All Implemented Interfaces:
IPortalComponentDAO

public final class PortalComponentDAO
extends Object
implements IPortalComponentDAO

This class provides Data Access methods for PortalComponent objects


Constructor Summary
PortalComponentDAO()
           
 
Method Summary
 void delete(int nPortalComponentId)
          Delete a record from the table
 void insert(PortalComponent portalComponent)
          Insert a new record in the table.
 PortalComponent load(int nPortalComponentId)
          load the data of PortalComponent from the table
 StyleSheet selectXslFile(int nPortalComponentId, int nIdMode)
          Returns the stylesheet of the portlet according to the mode
 void store(PortalComponent portalComponent)
          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

PortalComponentDAO

public PortalComponentDAO()
Method Detail

insert

public void insert(PortalComponent portalComponent)
Insert a new record in the table.

Specified by:
insert in interface IPortalComponentDAO
Parameters:
portalComponent - component The Instance of the object PortalComponent

load

public PortalComponent load(int nPortalComponentId)
load the data of PortalComponent from the table

Specified by:
load in interface IPortalComponentDAO
Parameters:
nPortalComponentId - The indentifier of the object PortalComponent
Returns:
The Instance of the object PortalComponent

delete

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

Specified by:
delete in interface IPortalComponentDAO
Parameters:
nPortalComponentId - The indentifier of the object PortalComponent

store

public void store(PortalComponent portalComponent)
Update the record in the table

Specified by:
store in interface IPortalComponentDAO
Parameters:
portalComponent - The instance of the PortalComponent to update

selectXslFile

public StyleSheet selectXslFile(int nPortalComponentId,
                                int nIdMode)
Returns the stylesheet of the portlet according to the mode

Specified by:
selectXslFile in interface IPortalComponentDAO
Parameters:
nPortalComponentId - the identifier of the portlet
nIdMode - the selected mode
Returns:
the stylesheet


Copyright © 2014 Mairie de Paris. All Rights Reserved.