java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.FieldDAO
All Implemented Interfaces:
IFieldDAO

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete an association between field and a regular expression
    int
    insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    void
    insertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    insert an association between field and a regular expression
    boolean
    isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    verify if the regular expression is use
    load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the Field from the table
    loadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all Fields by code
    loadMultipleByEntryIdList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all the fields by list of id_enrty.
    selectEntryTitlesByRegularExpression(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the titles of the entries whose fields are verified by the regular expression
    selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the field of the entry and returns them in a list
    selectListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the key of all the regularExpression associate to the field and returns them in a list
    void
    store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the field 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 int 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 new field create
    • 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 nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IFieldDAO
      Parameters:
      nIdField - The identifier of the field
      plugin - the plugin
    • store

      public void store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the field in the table
      Specified by:
      store in interface IFieldDAO
      Parameters:
      field - instance of the Field object to update
      plugin - the plugin
    • selectFieldListByIdEntry

      public List<Field> selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the field of the entry and returns them in a list
      Specified by:
      selectFieldListByIdEntry in interface IFieldDAO
      Parameters:
      nIdEntry - the id of the entry
      plugin - the plugin
      Returns:
      the list of field
    • deleteVerifyBy

      public void deleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete an association between field and a regular expression
      Specified by:
      deleteVerifyBy in interface IFieldDAO
      Parameters:
      nIdField - The identifier of the field
      nIdExpression - The identifier of the regular expression
      plugin - the plugin
    • insertVerifyBy

      public void insertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      insert an association between field and a regular expression
      Specified by:
      insertVerifyBy in interface IFieldDAO
      Parameters:
      nIdField - The identifier of the field
      nIdExpression - The identifier of the regular expression
      plugin - the plugin
    • selectListRegularExpressionKeyByIdField

      public List<Integer> selectListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the key of all the regularExpression associate to the field and returns them in a list
      Specified by:
      selectListRegularExpressionKeyByIdField in interface IFieldDAO
      Parameters:
      nIdField - the id of the field
      plugin - the plugin
      Returns:
      the list of regular expression key
    • isRegularExpressionIsUse

      public boolean isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      verify if the regular expression is use
      Specified by:
      isRegularExpressionIsUse in interface IFieldDAO
      Parameters:
      nIdExpression - The identifier of the regular expression
      plugin - the plugin
      Returns:
      true if the regular expression is use
    • selectEntryTitlesByRegularExpression

      public List<String> selectEntryTitlesByRegularExpression(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the titles of the entries whose fields are verified by the regular expression
      Specified by:
      selectEntryTitlesByRegularExpression in interface IFieldDAO
      Parameters:
      nIdExpression - The identifier of the regular expression
      plugin - the plugin
      Returns:
      the titles of the entries, one per field verified by the regular expression
    • loadMultipleByEntryIdList

      public List<Field> loadMultipleByEntryIdList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFieldDAO
      Load all the fields by list of id_enrty.
      Specified by:
      loadMultipleByEntryIdList in interface IFieldDAO
      Returns:
    • loadByCode

      public List<Field> loadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IFieldDAO
      Load all Fields by code
      Specified by:
      loadByCode in interface IFieldDAO
      Returns: