Class FieldDAO

  • All Implemented Interfaces:
    IFieldDAO

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

      Constructors 
      Constructor Description
      FieldDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nFieldId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Field load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the field from the table
      java.util.List<Field> selectFieldsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the fields and returns them as a List
      void store​(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      • Methods inherited from class java.lang.Object

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

      • FieldDAO

        public FieldDAO()
    • Method Detail

      • insert

        public void insert​(Field field,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IFieldDAO
        Parameters:
        field - instance of the Field object to insert
        plugin - The plugin
      • load

        public Field load​(int nId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of the field from the table
        Specified by:
        load in interface IFieldDAO
        Parameters:
        nId - The identifier of the field
        plugin - The plugin
        Returns:
        the instance of the Field
      • delete

        public void delete​(int nFieldId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IFieldDAO
        Parameters:
        nFieldId - The identifier of the field
        plugin - The plugin
      • store

        public void store​(Field field,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IFieldDAO
        Parameters:
        field - The reference of the field
        plugin - The plugin
      • selectFieldsList

        public java.util.List<Field> selectFieldsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the fields and returns them as a List
        Specified by:
        selectFieldsList in interface IFieldDAO
        Parameters:
        plugin - The plugin
        Returns:
        The List which contains the data of all the fields