Class FileDAO

  • All Implemented Interfaces:
    IFileDAO

    public final class FileDAO
    extends Object
    implements IFileDAO
    This class provides Data Access methods for Field objects
    • Constructor Detail

      • FileDAO

        public FileDAO()
    • Method Detail

      • insert

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

        public File load​(int nId)
        Load the data of the File from the table
        Specified by:
        load in interface IFileDAO
        Parameters:
        nId - The identifier of the file
        Returns:
        the instance of the File
      • delete

        public void delete​(int nIdFile)
        Delete a record from the table
        Specified by:
        delete in interface IFileDAO
        Parameters:
        nIdFile - The identifier of the file
      • store

        public void store​(File file)
        Update the file in the table
        Specified by:
        store in interface IFileDAO
        Parameters:
        file - instance of the File object to update