java.lang.Object
fr.paris.lutece.plugins.search.solr.business.field.FieldDAO
All Implemented Interfaces:
IFieldDAO

@ApplicationScoped public class FieldDAO extends Object implements IFieldDAO
This class provides Data Access methods for Field objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nFieldId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the field from the table
    selectFieldsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the fields and returns them as a List
    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 Details

    • FieldDAO

      public FieldDAO()
  • Method Details

    • insert

      public Field 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
      Returns:
      the created instance
    • 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 Field 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
      Returns:
      the created instance
    • selectFieldsList

      public 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