Class ModeDAO

  • All Implemented Interfaces:
    IModeDAO

    public final class ModeDAO
    extends Object
    implements IModeDAO
    This class provides Data Access methods for Mode objects
    • 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 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