Class DefaultSolrIndexOperationDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<SolrIndexOperationModel>
-
- de.hybris.platform.solrfacetsearch.daos.impl.DefaultSolrIndexOperationDao
-
- All Implemented Interfaces:
GenericDao<SolrIndexOperationModel>,SolrIndexOperationDao
public class DefaultSolrIndexOperationDao extends DefaultGenericDao<SolrIndexOperationModel> implements SolrIndexOperationDao
Default implementation ofSolrIndexOperationDao.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringLAST_SUCCESSFUL_OPERATION_QUERYprotected static java.lang.StringOPERATIONS_PARAM
-
Constructor Summary
Constructors Constructor Description DefaultSolrIndexOperationDao()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrIndexOperationModelfindIndexOperationById(long id)Finds the index operation by id.java.util.Optional<SolrIndexOperationModel>findLastSuccesfulIndexOperation(SolrIndexModel index)Finds the last successfully finished FULL or UPDATE index operation for a given index.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Field Detail
-
OPERATIONS_PARAM
protected static final java.lang.String OPERATIONS_PARAM
- See Also:
- Constant Field Values
-
LAST_SUCCESSFUL_OPERATION_QUERY
protected static final java.lang.String LAST_SUCCESSFUL_OPERATION_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
findIndexOperationById
public SolrIndexOperationModel findIndexOperationById(long id)
Description copied from interface:SolrIndexOperationDaoFinds the index operation by id.- Specified by:
findIndexOperationByIdin interfaceSolrIndexOperationDao- Parameters:
id- - the index operation id- Returns:
- the index operation
-
findLastSuccesfulIndexOperation
public java.util.Optional<SolrIndexOperationModel> findLastSuccesfulIndexOperation(SolrIndexModel index)
Description copied from interface:SolrIndexOperationDaoFinds the last successfully finished FULL or UPDATE index operation for a given index.- Specified by:
findLastSuccesfulIndexOperationin interfaceSolrIndexOperationDao- Parameters:
index- - the index- Returns:
- Optional
SolrIndexOperationModel
-
-