Class SolrIndexerActionDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.search.solr.business.indexeraction.SolrIndexerActionDAO
-
- All Implemented Interfaces:
ISolrIndexerActionDAO
public final class SolrIndexerActionDAO extends Object implements ISolrIndexerActionDAO
This class provides Data Access methods for Indexer Action objects
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSTANT_ANDstatic StringCONSTANT_WHERE
-
Constructor Summary
Constructors Constructor Description SolrIndexerActionDAO()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringbuildRequestWithFilter(String strSelect, List<String> listStrFilter, String strOrder)Builds a query with filters placed in parametersvoiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(SolrIndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.SolrIndexerActionload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the IndexerAction from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyList<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 listList<SolrIndexerAction>selectList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all indexerActionvoidstore(SolrIndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the indexerAction in the table
-
-
-
Field Detail
-
CONSTANT_WHERE
public static final String CONSTANT_WHERE
- See Also:
- Constant Field Values
-
CONSTANT_AND
public static final String CONSTANT_AND
- See Also:
- Constant Field Values
-
-
Method Detail
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key- Specified by:
newPrimaryKeyin interfaceISolrIndexerActionDAO- Parameters:
plugin- the plugin- Returns:
- The new primary key
-
insert
public void insert(SolrIndexerAction indexerAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceISolrIndexerActionDAO- Parameters:
indexerAction- instance of the IndexerAction object to insertplugin- 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:
loadin interfaceISolrIndexerActionDAO- Parameters:
nId- The identifier of the actionplugin- 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:
deletein interfaceISolrIndexerActionDAO- Parameters:
nId- The identifier of the actionplugin- the plugin
-
deleteAll
public void deleteAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table- Specified by:
deleteAllin interfaceISolrIndexerActionDAO- 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:
storein interfaceISolrIndexerActionDAO- Parameters:
indexerAction- instance of the IndexerAction object to updateplugin- the plugin
-
selectList
public 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:
selectListin interfaceISolrIndexerActionDAO- Parameters:
filter- the search filterplugin- the plugin- Returns:
- The List which contains the data of all action
-
selectList
public List<SolrIndexerAction> selectList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all indexerAction- Specified by:
selectListin interfaceISolrIndexerActionDAO- Parameters:
plugin- the plugin- Returns:
- The List which contains the data of all action
-
buildRequestWithFilter
public static String buildRequestWithFilter(String strSelect, List<String> listStrFilter, String strOrder)
Builds a query with filters placed in parameters- Parameters:
strSelect- the select of the querylistStrFilter- the list of filter to add in the querystrOrder- the order by of the query- Returns:
- a query
-
-