fr.paris.lutece.portal.business.stylesheet
Class StyleSheetDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.stylesheet.StyleSheetDAO
All Implemented Interfaces:
IStyleSheetDAO

public final class StyleSheetDAO
extends java.lang.Object
implements IStyleSheetDAO

This class provides Data Access methods for StyleSheet objects


Constructor Summary
StyleSheetDAO()
           
 
Method Summary
 void delete(int nIdStylesheet)
          Delete the StyleSheet from the database whose identifier is specified in parameter
 void insert(StyleSheet stylesheet)
          Insert a new record in the table.
 StyleSheet load(int nIdStylesheet)
          Load the data of Stylesheet from the table
 int selectModeId(int nIdStylesheet)
          Returns the identifier of the mode of the stylesheet whose identifier is specified in parameter
 java.util.Collection<StyleSheet> selectStyleSheetList(int nModeId)
          Load the list of stylesheet
 int selectStyleSheetNbPerStyleMode(int nStyleId, int nModeId)
          Returns the number of stylesheets associated to the style and the mode specified in parameter
 void store(StyleSheet stylesheet)
          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

StyleSheetDAO

public StyleSheetDAO()
Method Detail

insert

public void insert(StyleSheet stylesheet)
Insert a new record in the table.

Specified by:
insert in interface IStyleSheetDAO
Parameters:
stylesheet - The StyleSheet object

load

public StyleSheet load(int nIdStylesheet)
Load the data of Stylesheet from the table

Specified by:
load in interface IStyleSheetDAO
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:
delete in interface IStyleSheetDAO
Parameters:
nIdStylesheet - the identifier of the StyleSheet to delete

selectStyleSheetList

public java.util.Collection<StyleSheet> selectStyleSheetList(int nModeId)
Load the list of stylesheet

Specified by:
selectStyleSheetList in interface IStyleSheetDAO
Parameters:
nModeId - The Mode identifier
Returns:
the list of the StyleSheet in form of a collection of StyleSheet objects

store

public void store(StyleSheet stylesheet)
Update the record in the table

Specified by:
store in interface IStyleSheetDAO
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:
selectStyleSheetNbPerStyleMode in interface IStyleSheetDAO
Parameters:
nStyleId - the style id
nModeId - 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:
selectModeId in interface IStyleSheetDAO
Parameters:
nIdStylesheet - the identifier of the stylesheet
Returns:
the identifier of the mode


Copyright © 2010 Mairie de Paris. All Rights Reserved.