Class AttributeDAO

java.lang.Object
fr.paris.lutece.plugins.files2docs.business.AttributeDAO
All Implemented Interfaces:
IAttributeDAO

public class AttributeDAO extends Object implements IAttributeDAO
This class provides Data Access methods for Attribute objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Deletes a record from the table
    void
    insert(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Inserts a new record in the table
    load(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of the attribute from the table
    selectByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of the attribute filtered by document attribute
    selectByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of the attributes filtered by mapping
    void
    store(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Updates the record in the table

    Methods inherited from class java.lang.Object

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

    • AttributeDAO

      public AttributeDAO()
  • Method Details

    • insert

      public void insert(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Inserts a new record in the table
      Specified by:
      insert in interface IAttributeDAO
      Parameters:
      attribute - Instance of the Attribute object to insert
      plugin - The plugin
    • selectByMapping

      public Collection<Attribute> selectByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attributes filtered by mapping
      Specified by:
      selectByMapping in interface IAttributeDAO
      Parameters:
      nMappingId - The mapping identifier
      plugin - The plugin
      Returns:
      A collection which contains the data of the attributes filtered by mapping
    • load

      public Attribute load(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute from the table
      Specified by:
      load in interface IAttributeDAO
      Parameters:
      nAttributeId - The attribute identifier
      plugin - The plugin
      Returns:
      The instance of the Attribute
    • store

      public void store(Attribute attribute, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates the record in the table
      Specified by:
      store in interface IAttributeDAO
      Parameters:
      attribute - The reference of the attribute
      plugin - The plugin
    • deleteByMapping

      public void deleteByMapping(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes a record from the table
      Specified by:
      deleteByMapping in interface IAttributeDAO
      Parameters:
      nMappingId - The mapping identifier
      plugin - The plugin
    • selectByDocumentAttribute

      public Attribute selectByDocumentAttribute(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute filtered by document attribute
      Specified by:
      selectByDocumentAttribute in interface IAttributeDAO
      Parameters:
      nDocumentAttributeId - The document attribute identifier
      plugin - The plugin
      Returns:
      The instance of the Attribute