Interface IStyleSheetDAO

  • All Known Implementing Classes:
    StyleSheetDAO

    public interface IStyleSheetDAO
    Author:
    LEVY
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      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
    • Method Detail

      • delete

        void delete​(int nIdStylesheet)
        Delete the StyleSheet from the database whose identifier is specified in parameter
        Parameters:
        nIdStylesheet - the identifier of the StyleSheet to delete
      • insert

        void insert​(StyleSheet stylesheet)
        Insert a new record in the table.
        Parameters:
        stylesheet - The StyleSheet object
      • load

        StyleSheet load​(int nIdStylesheet)
        Load the data of Stylesheet from the table
        Parameters:
        nIdStylesheet - the identifier of the Stylesheet to load
        Returns:
        stylesheet
      • selectModeId

        int selectModeId​(int nIdStylesheet)
        Returns the identifier of the mode of the stylesheet whose identifier is specified in parameter
        Parameters:
        nIdStylesheet - the identifier of the stylesheet
        Returns:
        the identifier of the mode
      • selectStyleSheetList

        java.util.Collection<StyleSheet> selectStyleSheetList​(int nModeId)
        Load the list of stylesheet
        Parameters:
        nModeId - The Mode identifier
        Returns:
        the list of the StyleSheet in form of a collection of StyleSheet objects
      • selectStyleSheetNbPerStyleMode

        int selectStyleSheetNbPerStyleMode​(int nStyleId,
                                           int nModeId)
        Returns the number of stylesheets associated to the style and the mode specified in parameter
        Parameters:
        nStyleId - the style id
        nModeId - the mode id
        Returns:
        the number of stylesheet associated
      • store

        void store​(StyleSheet stylesheet)
        Update the record in the table
        Parameters:
        stylesheet - The stylesheet to store