Class StyleSheetDAO
java.lang.Object
fr.paris.lutece.portal.business.stylesheet.StyleSheetDAO
- All Implemented Interfaces:
IStyleSheetDAO
This class provides Data Access methods for StyleSheet objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdStylesheet) Delete the StyleSheet from the database whose identifier is specified in parametervoidinsert(StyleSheet stylesheet) Insert a new record in the table.load(int nIdStylesheet) Load the data of Stylesheet from the tableintselectModeId(int nIdStylesheet) Returns the identifier of the mode of the stylesheet whose identifier is specified in parameterselectStyleSheetList(int nModeId) Load the list of stylesheetintselectStyleSheetNbPerStyleMode(int nStyleId, int nModeId) Returns the number of stylesheets associated to the style and the mode specified in parametervoidstore(StyleSheet stylesheet) Update the record in the table
-
Constructor Details
-
StyleSheetDAO
public StyleSheetDAO()
-
-
Method Details
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceIStyleSheetDAO- Parameters:
stylesheet- The StyleSheet object
-
load
Load the data of Stylesheet from the table- Specified by:
loadin interfaceIStyleSheetDAO- Parameters:
nIdStylesheet- the identifier of the Stylesheet to load- Returns:
- stylesheet
-
delete
public void delete(int nIdStylesheet) Delete the StyleSheet from the database whose identifier is specified in parameter- Specified by:
deletein interfaceIStyleSheetDAO- Parameters:
nIdStylesheet- the identifier of the StyleSheet to delete
-
selectStyleSheetList
Load the list of stylesheet- Specified by:
selectStyleSheetListin interfaceIStyleSheetDAO- Parameters:
nModeId- The Mode identifier- Returns:
- the list of the StyleSheet in form of a collection of StyleSheet objects
-
store
Update the record in the table- Specified by:
storein interfaceIStyleSheetDAO- Parameters:
stylesheet- The stylesheet
-
selectStyleSheetNbPerStyleMode
public int selectStyleSheetNbPerStyleMode(int nStyleId, int nModeId) Returns the number of stylesheets associated to the style and the mode specified in parameter- Specified by:
selectStyleSheetNbPerStyleModein interfaceIStyleSheetDAO- Parameters:
nStyleId- the style idnModeId- the mode id- Returns:
- the number of stylesheet associated
-
selectModeId
public int selectModeId(int nIdStylesheet) Returns the identifier of the mode of the stylesheet whose identifier is specified in parameter- Specified by:
selectModeIdin interfaceIStyleSheetDAO- Parameters:
nIdStylesheet- the identifier of the stylesheet- Returns:
- the identifier of the mode
-