Class AttributeDAO

  • All Implemented Interfaces:
    IAttributeDAO

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

      Constructors 
      Constructor Description
      AttributeDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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
      Attribute load​(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute from the table
      Attribute selectByDocumentAttribute​(int nDocumentAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the attribute filtered by document attribute
      java.util.Collection<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 Detail

      • AttributeDAO

        public AttributeDAO()
    • Method Detail

      • 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 java.util.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