@Repository(value="blSearchRedirectDao") public class SearchRedirectDaoImpl extends Object implements SearchRedirectDao
| Modifier and Type | Field and Description |
|---|---|
protected Date |
cachedDate |
protected Long |
currentDateResolution |
protected javax.persistence.EntityManager |
em |
protected boolean |
isNullActiveStartDateActive |
| Constructor and Description |
|---|
SearchRedirectDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
SearchRedirect |
findSearchRedirectBySearchTerm(String searchTerm) |
protected Date |
getCurrentDateAfterFactoringInDateResolution() |
Long |
getCurrentDateResolution()
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
void |
setCurrentDateResolution(Long currentDateResolution)
Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
protected javax.persistence.EntityManager em
@Value(value="${searchRedirect.is.null.activeStartDate.active:false}")
protected boolean isNullActiveStartDateActive
@Value(value="${query.dateResolution.searchredirect:10000}")
protected Long currentDateResolution
protected Date cachedDate
protected Date getCurrentDateAfterFactoringInDateResolution()
public SearchRedirect findSearchRedirectBySearchTerm(String searchTerm)
findSearchRedirectBySearchTerm in interface SearchRedirectDaopublic Long getCurrentDateResolution()
SearchRedirectDaogetCurrentDateResolution in interface SearchRedirectDaopublic void setCurrentDateResolution(Long currentDateResolution)
SearchRedirectDaosetCurrentDateResolution in interface SearchRedirectDaocurrentDateResolution - the milliseconds to cache the current date/timeCopyright © 2022. All rights reserved.