Class FileDAO

  • All Implemented Interfaces:
    IFileDAO

    public final class FileDAO
    extends java.lang.Object
    implements IFileDAO
    This class provides Data Access methods for Field objects
    • Constructor Summary

      Constructors 
      Constructor Description
      FileDAO()  
    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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