Class PortalComponentDAO
java.lang.Object
fr.paris.lutece.portal.business.portalcomponent.PortalComponentDAO
- All Implemented Interfaces:
IPortalComponentDAO
@ApplicationScoped
public final class PortalComponentDAO
extends Object
implements IPortalComponentDAO
This class provides Data Access methods for PortalComponent objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nPortalComponentId) Delete a record from the tablevoidinsert(PortalComponent portalComponent) Insert a new record in the table.load(int nPortalComponentId) load the data of PortalComponent from the tableselectXslFile(int nPortalComponentId, int nIdMode) Returns the stylesheet of the portlet according to the modevoidstore(PortalComponent portalComponent) Update the record in the table
-
Constructor Details
-
PortalComponentDAO
public PortalComponentDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIPortalComponentDAO- Parameters:
portalComponent- component The Instance of the object PortalComponent
-
load
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
Update the record in the table- Specified by:
storein interfaceIPortalComponentDAO- Parameters:
portalComponent- The instance of the PortalComponent to update
-
selectXslFile
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
-