Class PlatformReleaseDAO

java.lang.Object
fr.paris.lutece.plugins.releaser.business.platform.PlatformReleaseDAO
All Implemented Interfaces:
IPlatformReleaseDAO

public final class PlatformReleaseDAO extends Object implements IPlatformReleaseDAO
This class provides Data Access methods for PlatformRelease 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
    insert(PlatformRelease platformRelease, 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
    loadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the campaign with the given name, names being unique
    selectPlatformReleasesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the PlatformRelease objects and returns them as a list, most recent first
    void
    store(PlatformRelease platformRelease, 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

    • PlatformReleaseDAO

      public PlatformReleaseDAO()
  • Method Details

    • insert

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

      public void store(PlatformRelease platformRelease, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IPlatformReleaseDAO
      Parameters:
      platformRelease - the reference of the PlatformRelease
      plugin - the Plugin
    • 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 IPlatformReleaseDAO
      Parameters:
      nKey - The identifier of the PlatformRelease to delete
      plugin - the Plugin
    • load

      public PlatformRelease load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IPlatformReleaseDAO
      Parameters:
      nKey - The identifier of the PlatformRelease
      plugin - the Plugin
      Returns:
      The instance of the PlatformRelease, or null if not found
    • loadByName

      public PlatformRelease loadByName(String strName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the campaign with the given name, names being unique
      Specified by:
      loadByName in interface IPlatformReleaseDAO
      Parameters:
      strName - The name of the PlatformRelease
      plugin - the Plugin
      Returns:
      The instance of the PlatformRelease, or null if not found
    • selectPlatformReleasesList

      public List<PlatformRelease> selectPlatformReleasesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the PlatformRelease objects and returns them as a list, most recent first
      Specified by:
      selectPlatformReleasesList in interface IPlatformReleaseDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the PlatformRelease objects