Class ReferenceItemDAO

java.lang.Object
fr.paris.lutece.plugins.referencelist.business.ReferenceItemDAO
All Implemented Interfaces:
IReferenceItemDAO

@ApplicationScoped public final class ReferenceItemDAO extends Object implements IReferenceItemDAO
This class provides Data Access methods for ReferenceItem objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteAll(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Deletes the records associated to a Reference
    void
    insert(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadReferenceItemByName(int nIdReference, String sItemName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectAllReferenceItems(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the referenceItem objects and returns them as a list
    selectIdReferenceItemsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the referenceItem objects and returns them as a list
    selectReferenceItemsList(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the referenceItem objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectReferenceItemsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the referenceItem objects and returns them as a referenceList
    selectReferenceItemsTranslatedList(int idReference, String strLang, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the translated referenceItem objects and returns them as a list
    void
    store(ReferenceItem referenceItem, 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

    • ReferenceItemDAO

      public ReferenceItemDAO()
  • Method Details

    • insert

      public void insert(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IReferenceItemDAO
      Parameters:
      referenceItem - instance of the ReferenceItem object to insert
      plugin - the Plugin
    • load

      public ReferenceItem load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IReferenceItemDAO
      Parameters:
      nKey - The identifier of the referenceItem
      plugin - the Plugin
      Returns:
      The instance of the referenceItem
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface IReferenceItemDAO
      Parameters:
      nKey - The identifier of the ReferenceItem to delete
      plugin - the Plugin
    • deleteAll

      public void deleteAll(int nIdReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Deletes the records associated to a Reference
      Specified by:
      deleteAll in interface IReferenceItemDAO
      Parameters:
      nIdReference - The Reference identifier of the Reference Items to delete
    • store

      public void store(ReferenceItem referenceItem, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IReferenceItemDAO
      Parameters:
      referenceItem - the reference of the ReferenceItem
      plugin - the Plugin
    • selectReferenceItemsList

      public List<ReferenceItem> selectReferenceItemsList(int idReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a list
      Specified by:
      selectReferenceItemsList in interface IReferenceItemDAO
      plugin - the Plugin
      Returns:
      The list which contains the data of all the referenceItem objects
    • selectReferenceItemsTranslatedList

      public List<ReferenceItem> selectReferenceItemsTranslatedList(int idReference, String strLang, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the translated referenceItem objects and returns them as a list
      Specified by:
      selectReferenceItemsTranslatedList in interface IReferenceItemDAO
      Parameters:
      idReference - the identifier of the reference
      strLang - the language
      plugin - the Plugin
      Returns:
    • selectIdReferenceItemsList

      public List<Integer> selectIdReferenceItemsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the referenceItem objects and returns them as a list
      Specified by:
      selectIdReferenceItemsList in interface IReferenceItemDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the id of all the referenceItem objects
    • selectReferenceItemsReferenceList

      public fr.paris.lutece.util.ReferenceList selectReferenceItemsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a referenceList
      Specified by:
      selectReferenceItemsReferenceList in interface IReferenceItemDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the referenceItem objects
    • selectAllReferenceItems

      public List<ReferenceItem> selectAllReferenceItems(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the referenceItem objects and returns them as a list
      Specified by:
      selectAllReferenceItems in interface IReferenceItemDAO
      Parameters:
      plugin - the plugin
      Returns:
      The list which contains the data of all the referenceItem objects
    • loadReferenceItemByName

      public ReferenceItem loadReferenceItemByName(int nIdReference, String sItemName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadReferenceItemByName in interface IReferenceItemDAO
      Parameters:
      nIdReference - The identifier of the reference of referenceitems
      sItemName - The name of referenceitem
      plugin - the Plugin
      Returns:
      The instance of the referenceItem