Class IndexerActionDAO

java.lang.Object
fr.paris.lutece.plugins.elasticdata.business.IndexerActionDAO
All Implemented Interfaces:
IIndexerActionDAO

@ApplicationScoped public final class IndexerActionDAO extends Object implements IIndexerActionDAO
This class provides Data Access methods for IndexerAction 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
    deleteByIdResourceList(List<String> listIdResource, String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete the records from the table by resource identifiers
    void
    insert(IndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    boolean
    insertIfAbsent(IndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table unless an action is already queued for the same resource and data source (unique key of the table), for example inserted at the same time by another thread or another instance.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadByIdResource(String strIdResource, String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectIdIndexerActionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the id of all the indexerAction objects and returns them as a list
    selectIdResourceIndexerActionsList(String strIdDataSource, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the IdResource of all the indexerAction objects and returns them as a list
    selectIndexerActionsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the indexerAction objects and returns them as a list
    selectIndexerActionsList(String strIdDataSource, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the indexerAction objects and returns them as a list
    selectIndexerActionsList(String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the indexerAction objects and returns them as a list
    selectIndexerActionsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
    Load the data of all the avant objects and returns them as a list
    fr.paris.lutece.util.ReferenceList
    selectIndexerActionsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the indexerAction objects and returns them as a referenceList
    void
    store(IndexerAction indexerAction, 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

    • IndexerActionDAO

      public IndexerActionDAO()
  • Method Details

    • insert

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

      public boolean insertIfAbsent(IndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table unless an action is already queued for the same resource and data source (unique key of the table), for example inserted at the same time by another thread or another instance.
      Specified by:
      insertIfAbsent in interface IIndexerActionDAO
      Parameters:
      indexerAction - instance of the IndexerAction object to insert
      plugin - the Plugin
      Returns:
      true if the record was inserted, false if an action was already queued for the resource and data source
    • load

      public Optional<IndexerAction> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IIndexerActionDAO
      Load the data from the table
      Specified by:
      load in interface IIndexerActionDAO
      Parameters:
      nKey - The identifier of the indexerAction
      plugin - the Plugin
      Returns:
      The instance of the indexerAction
    • loadByIdResource

      public IndexerAction loadByIdResource(String strIdResource, String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      loadByIdResource in interface IIndexerActionDAO
      Parameters:
      strIdResource - The identifier of the resource
      strIdDataSource - the identifier of the DataSource
      plugin - the Plugin
      Returns:
      The instance of the indexerAction
    • 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 IIndexerActionDAO
      Parameters:
      nKey - The identifier of the IndexerAction to delete
      plugin - the Plugin
    • deleteByIdResourceList

      public void deleteByIdResourceList(List<String> listIdResource, String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete the records from the table by resource identifiers
      Specified by:
      deleteByIdResourceList in interface IIndexerActionDAO
      Parameters:
      listIdResource - The list of resource identifiers
      strIdDataSource - The id of datasource
      plugin - the Plugin
    • store

      public void store(IndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IIndexerActionDAO
      Parameters:
      indexerAction - the reference of the IndexerAction
      plugin - the Plugin
    • selectIndexerActionsList

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

      public List<IndexerAction> selectIndexerActionsList(String strIdDataSource, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the indexerAction objects and returns them as a list
      Specified by:
      selectIndexerActionsList in interface IIndexerActionDAO
      Parameters:
      strIdDataSource - the identifier of data source
      plugin - the Plugin
      Returns:
      The list which contains the data of all the indexerAction objects
    • selectIndexerActionsList

      public List<IndexerAction> selectIndexerActionsList(String strIdDataSource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the indexerAction objects and returns them as a list
      Specified by:
      selectIndexerActionsList in interface IIndexerActionDAO
      Parameters:
      strIdDataSource - the identifier of data source
      plugin - the Plugin
      Returns:
      The list which contains the data of all the indexerAction objects
    • selectIdResourceIndexerActionsList

      public List<String> selectIdResourceIndexerActionsList(String strIdDataSource, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the IdResource of all the indexerAction objects and returns them as a list
      Specified by:
      selectIdResourceIndexerActionsList in interface IIndexerActionDAO
      plugin - the Plugin
      Returns:
      The list which contains the IdResource of all the indexerAction objects
    • selectIdIndexerActionsList

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

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

      public List<IndexerAction> selectIndexerActionsListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Specified by:
      selectIndexerActionsListByIds in interface IIndexerActionDAO
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects