Class PortalComponentDAO
- java.lang.Object
-
- fr.paris.lutece.portal.business.portalcomponent.PortalComponentDAO
-
- All Implemented Interfaces:
IPortalComponentDAO
public final class PortalComponentDAO extends java.lang.Object implements IPortalComponentDAO
This class provides Data Access methods for PortalComponent objects
-
-
Constructor Summary
Constructors Constructor Description PortalComponentDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nPortalComponentId)Delete a record from the tablevoidinsert(PortalComponent portalComponent)Insert a new record in the table.PortalComponentload(int nPortalComponentId)load the data of PortalComponent from the tableStyleSheetselectXslFile(int nPortalComponentId, int nIdMode)Returns the stylesheet of the portlet according to the modevoidstore(PortalComponent portalComponent)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(PortalComponent portalComponent)
Insert a new record in the table.- Specified by:
insertin interfaceIPortalComponentDAO- 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:
loadin interfaceIPortalComponentDAO- 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:
deletein interfaceIPortalComponentDAO- Parameters:
nPortalComponentId- The indentifier of the object PortalComponent
-
store
public void store(PortalComponent portalComponent)
Update the record in the table- Specified by:
storein interfaceIPortalComponentDAO- 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:
selectXslFilein interfaceIPortalComponentDAO- Parameters:
nPortalComponentId- the identifier of the portletnIdMode- the selected mode- Returns:
- the stylesheet
-
-