Class ReferenceDAO

  • All Implemented Interfaces:
    IReferenceDAO

    public final class ReferenceDAO
    extends java.lang.Object
    implements IReferenceDAO
    This class provides Data Access methods for Reference objects
    • Constructor Summary

      Constructors 
      Constructor Description
      ReferenceDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Reference reference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Reference load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      int loadByName​(java.lang.String referenceName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectIdReferencesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the reference objects and returns them as a list
      java.util.List<Reference> selectReferencesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the reference objects and returns them as a list
      fr.paris.lutece.util.ReferenceList selectReferencesReferenceList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the reference objects and returns them as a referenceList
      void store​(Reference reference, 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 Detail

      • ReferenceDAO

        public ReferenceDAO()
    • Method Detail

      • insert

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

        public Reference load​(int nKey,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        load in interface IReferenceDAO
        Parameters:
        nKey - The identifier of the reference
        plugin - the Plugin
        Returns:
        The instance of the reference
      • loadByName

        public int loadByName​(java.lang.String referenceName,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Specified by:
        loadByName in interface IReferenceDAO
        Parameters:
        referenceName - The name of the reference
        plugin - the Plugin
        Returns:
        The instance of the reference
      • 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 IReferenceDAO
        Parameters:
        nKey - The identifier of the Reference to delete
        plugin - the Plugin
      • store

        public void store​(Reference reference,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IReferenceDAO
        Parameters:
        reference - the reference of the Reference
        plugin - the Plugin
      • selectReferencesList

        public java.util.List<Reference> selectReferencesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all the reference objects and returns them as a list
        Specified by:
        selectReferencesList in interface IReferenceDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the reference objects
      • selectIdReferencesList

        public java.util.List<java.lang.Integer> selectIdReferencesList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the id of all the reference objects and returns them as a list
        Specified by:
        selectIdReferencesList in interface IReferenceDAO
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the id of all the reference objects
      • selectReferencesReferenceList

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