java.lang.Object
fr.paris.lutece.plugins.files2docs.business.MappingDAO
All Implemented Interfaces:
IMappingDAO

public class MappingDAO extends Object implements IMappingDAO
This class provides Data Access methods for Mapping objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Deletes a record from the table
    void
    insert(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Inserts a new record in the table
    load(int nMappingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of the mapping from the table
    selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of all the mapping
    selectByDocumentTypeCode(String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Loads the data of the mapping filtered by document type code
    void
    store(Mapping mapping, 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

    • MappingDAO

      public MappingDAO()
  • Method Details

    • selectAll

      public Collection<Mapping> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of all the mapping
      Specified by:
      selectAll in interface IMappingDAO
      Parameters:
      plugin - The plugin
      Returns:
      A collection which contains the data of all the mapping
    • insert

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

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

      public void store(Mapping mapping, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Updates the record in the table
      Specified by:
      store in interface IMappingDAO
      Parameters:
      mapping - The reference of the mapping
      plugin - The plugin
    • delete

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

      public Mapping selectByDocumentTypeCode(String strDocumentTypeCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Loads the data of the mapping filtered by document type code
      Specified by:
      selectByDocumentTypeCode in interface IMappingDAO
      Parameters:
      strDocumentTypeCode - The document type code
      plugin - The plugin
      Returns:
      The instance of the Mapping