Class ModeDAO

  • All Implemented Interfaces:
    IModeDAO

    public final class ModeDAO
    extends java.lang.Object
    implements IModeDAO
    This class provides Data Access methods for Mode objects
    • Constructor Summary

      Constructors 
      Constructor Description
      ModeDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nModeId)
      Delete a record from the table
      ReferenceList getModesList()
      Returns the list of the modes in form of a reference list
      void insert​(Mode mode)
      Insert a new record in the table.
      Mode load​(int nIdMode)
      load the data of Level from the table
      java.util.Collection<Mode> selectModesList()
      Returns a list of all the modes
      void store​(Mode mode)
      Update the record in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModeDAO

        public ModeDAO()
    • Method Detail

      • insert

        public void insert​(Mode mode)
        Insert a new record in the table.
        Specified by:
        insert in interface IModeDAO
        Parameters:
        mode - The mode object
      • load

        public Mode load​(int nIdMode)
        load the data of Level from the table
        Specified by:
        load in interface IModeDAO
        Parameters:
        nIdMode - The indentifier of the object Mode
        Returns:
        The Instance of the object Mode
      • delete

        public void delete​(int nModeId)
        Delete a record from the table
        Specified by:
        delete in interface IModeDAO
        Parameters:
        nModeId - The indentifier of the object Mode
      • store

        public void store​(Mode mode)
        Update the record in the table
        Specified by:
        store in interface IModeDAO
        Parameters:
        mode - The instance of the Mode to update
      • selectModesList

        public java.util.Collection<Mode> selectModesList()
        Returns a list of all the modes
        Specified by:
        selectModesList in interface IModeDAO
        Returns:
        A collection of modes objects
      • getModesList

        public ReferenceList getModesList()
        Returns the list of the modes in form of a reference list
        Specified by:
        getModesList in interface IModeDAO
        Returns:
        the modes list in form of a ReferenceList object