fr.paris.lutece.plugins.calendar.business.stylesheet
Class CalendarStyleSheetDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.calendar.business.stylesheet.CalendarStyleSheetDAO
All Implemented Interfaces:
ICalendarStyleSheetDAO

public final class CalendarStyleSheetDAO
extends java.lang.Object
implements ICalendarStyleSheetDAO

This class provides Data Access methods for StyleSheet objects


Constructor Summary
CalendarStyleSheetDAO()
           
 
Method Summary
 void delete(int nIdStylesheet)
          Delete the StyleSheet from the database whose identifier is specified in parameter
 void insert(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet, java.lang.String strExtension)
          Insert a new record in the table.
 void insertExtension(int nId, java.lang.String strExtension)
          Insertion of the extension of an export file in the database
 fr.paris.lutece.portal.business.stylesheet.StyleSheet load(int nIdStylesheet)
          Load the data of Stylesheet from the table
 java.lang.String selectExtension(int nId)
          Select the extension file related to the export stylesheet
 java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> selectStyleSheetList()
          Load the list of stylesheet
 void store(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet)
          Update the record in the table
 void updateExtension(int nId, java.lang.String strExtension)
          Update the the extension file whose identifier is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarStyleSheetDAO

public CalendarStyleSheetDAO()
Method Detail

insert

public void insert(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet,
                   java.lang.String strExtension)
Insert a new record in the table.

Specified by:
insert in interface ICalendarStyleSheetDAO
Parameters:
stylesheet - The StyleSheet object
strExtension - the export file extension

load

public fr.paris.lutece.portal.business.stylesheet.StyleSheet load(int nIdStylesheet)
Load the data of Stylesheet from the table

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

selectStyleSheetList

public java.util.Collection<fr.paris.lutece.portal.business.stylesheet.StyleSheet> selectStyleSheetList()
Load the list of stylesheet

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

store

public void store(fr.paris.lutece.portal.business.stylesheet.StyleSheet stylesheet)
Update the record in the table

Specified by:
store in interface ICalendarStyleSheetDAO
Parameters:
stylesheet - The stylesheet

insertExtension

public void insertExtension(int nId,
                            java.lang.String strExtension)
Insertion of the extension of an export file in the database

Specified by:
insertExtension in interface ICalendarStyleSheetDAO
Parameters:
strExtension - the extension file

selectExtension

public java.lang.String selectExtension(int nId)
Select the extension file related to the export stylesheet

Specified by:
selectExtension in interface ICalendarStyleSheetDAO
Parameters:
nId - the identifier of the stylesheet
Returns:
the extension file

updateExtension

public void updateExtension(int nId,
                            java.lang.String strExtension)
Update the the extension file whose identifier is specified in parameter

Specified by:
updateExtension in interface ICalendarStyleSheetDAO
Parameters:
nId - the stylesheet id
strExtension - the new extension file


Copyright © 2009 Mairie de Paris. All Rights Reserved.