Class PhysicalFileDAO

  • All Implemented Interfaces:
    IPhysicalFileDAO

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

      Constructors 
      Constructor Description
      PhysicalFileDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdPhysicalFile)
      Delete a record from the table
      int insert​(PhysicalFile physicalFile)
      Insert a new record in the table.
      PhysicalFile load​(int nId)
      Load the data of the PhysicalFile from the table
      void store​(PhysicalFile physicalFile)
      Update the physical file in the table
      • Methods inherited from class java.lang.Object

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

      • PhysicalFileDAO

        public PhysicalFileDAO()
    • Method Detail

      • insert

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

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

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

        public void store​(PhysicalFile physicalFile)
        Update the physical file in the table
        Specified by:
        store in interface IPhysicalFileDAO
        Parameters:
        physicalFile - instance of the physicalFile object to update