Class SolrIndexerActionDAO

  • All Implemented Interfaces:
    ISolrIndexerActionDAO

    public final class SolrIndexerActionDAO
    extends java.lang.Object
    implements ISolrIndexerActionDAO
    This class provides Data Access methods for Indexer Action objects
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONSTANT_AND  
      static java.lang.String CONSTANT_WHERE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String buildRequestWithFilter​(java.lang.String strSelect, java.util.List<java.lang.String> listStrFilter, java.lang.String strOrder)
      Builds a query with filters placed in parameters
      void delete​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(SolrIndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      SolrIndexerAction load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the IndexerAction from the table
      java.util.List<SolrIndexerAction> selectList​(fr.paris.lutece.portal.business.indexeraction.IndexerActionFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all indexerAction and returns them in a list
      java.util.List<SolrIndexerAction> selectList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all indexerAction
      void store​(SolrIndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the indexerAction in the table
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrIndexerActionDAO

        public SolrIndexerActionDAO()
    • Method Detail

      • insert

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

        public SolrIndexerAction load​(int nId,
                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of the IndexerAction from the table
        Specified by:
        load in interface ISolrIndexerActionDAO
        Parameters:
        nId - The identifier of the action
        plugin - the plugin
        Returns:
        the instance of the IndexerAction
      • delete

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

        public void deleteAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        deleteAll in interface ISolrIndexerActionDAO
        Parameters:
        plugin - the plugin
      • store

        public void store​(SolrIndexerAction indexerAction,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the indexerAction in the table
        Specified by:
        store in interface ISolrIndexerActionDAO
        Parameters:
        indexerAction - instance of the IndexerAction object to update
        plugin - the plugin
      • selectList

        public java.util.List<SolrIndexerAction> selectList​(fr.paris.lutece.portal.business.indexeraction.IndexerActionFilter filter,
                                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all indexerAction and returns them in a list
        Specified by:
        selectList in interface ISolrIndexerActionDAO
        Parameters:
        filter - the search filter
        plugin - the plugin
        Returns:
        The List which contains the data of all action
      • selectList

        public java.util.List<SolrIndexerAction> selectList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data of all indexerAction
        Specified by:
        selectList in interface ISolrIndexerActionDAO
        Parameters:
        plugin - the plugin
        Returns:
        The List which contains the data of all action
      • buildRequestWithFilter

        public static java.lang.String buildRequestWithFilter​(java.lang.String strSelect,
                                                              java.util.List<java.lang.String> listStrFilter,
                                                              java.lang.String strOrder)
        Builds a query with filters placed in parameters
        Parameters:
        strSelect - the select of the query
        listStrFilter - the list of filter to add in the query
        strOrder - the order by of the query
        Returns:
        a query