Interface IFileDAO

  • All Known Implementing Classes:
    FileDAO

    public interface IFileDAO
    IFileDAO
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdFile)
      Delete a record from the table
      int insert​(File file)
      Insert a new record in the table.
      File load​(int nId)
      Load the data of the File from the table
      void store​(File file)
      Update the file in the table
    • Method Detail

      • insert

        int insert​(File file)
        Insert a new record in the table.
        Parameters:
        file - instance of the File object to insert
        Returns:
        the id of the new file
      • load

        File load​(int nId)
        Load the data of the File from the table
        Parameters:
        nId - The identifier of the file
        Returns:
        the instance of the File
      • delete

        void delete​(int nIdFile)
        Delete a record from the table
        Parameters:
        nIdFile - The identifier of the file
      • store

        void store​(File file)
        Update the file in the table
        Parameters:
        file - instance of the File object to update