Class SearchRedirectDaoImpl
java.lang.Object
org.broadleafcommerce.core.search.redirect.dao.SearchRedirectDaoImpl
- All Implemented Interfaces:
SearchRedirectDao
@Repository("blSearchRedirectDao")
public class SearchRedirectDaoImpl
extends Object
implements SearchRedirectDao
Created by ppatel.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.CriteriaQuery<SearchRedirect>buildFindSearchRedirectBySearchTermCriteria(String searchTerm) findSearchRedirectBySearchTerm(String searchTerm) protected DateReturns the number of milliseconds that the current date/time will be cached for queries before refreshing.voidsetCurrentDateResolution(Long currentDateResolution) Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
-
Field Details
-
em
protected jakarta.persistence.EntityManager em -
isNullActiveStartDateActive
@Value("${searchRedirect.is.null.activeStartDate.active:false}") protected boolean isNullActiveStartDateActive -
currentDateResolution
-
cachedDate
-
-
Constructor Details
-
SearchRedirectDaoImpl
public SearchRedirectDaoImpl()
-
-
Method Details
-
getCurrentDateAfterFactoringInDateResolution
-
findSearchRedirectBySearchTerm
- Specified by:
findSearchRedirectBySearchTermin interfaceSearchRedirectDao
-
buildFindSearchRedirectBySearchTermCriteria
protected jakarta.persistence.criteria.CriteriaQuery<SearchRedirect> buildFindSearchRedirectBySearchTermCriteria(String searchTerm) -
getCurrentDateResolution
Description copied from interface:SearchRedirectDaoReturns the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
getCurrentDateResolutionin interfaceSearchRedirectDao- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Description copied from interface:SearchRedirectDaoSets the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Specified by:
setCurrentDateResolutionin interfaceSearchRedirectDao- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-