com.elasticpath.domain.search.impl
Class AbstractSearchCriteriaImpl
java.lang.Object
com.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.search.impl.AbstractSearchCriteriaImpl
- All Implemented Interfaces:
- EpDomain, Persistence, SearchCriteria, Transient, java.io.Serializable
- Direct Known Subclasses:
- CategorySearchCriteriaImpl, CustomerSearchCriteriaImpl, OrderSearchCriteriaImpl, ProductSearchCriteriaImpl
public class AbstractSearchCriteriaImpl
- extends AbstractPersistenceImpl
- implements SearchCriteria
An abstract implementation of SearchCriteria.
- See Also:
- Serialized Form
|
Method Summary |
java.util.Locale |
getLocale()
Returns the Locale. |
boolean |
isFuzzySearchDisabled()
Returns whether or not a fuzzy search should be performed for this query. |
void |
setFuzzySearchDisabled(boolean fuzzySearchDisabled)
Sets whether or not a fuzzy search should be performed for this query. |
void |
setLocale(java.util.Locale locale)
Sets the Locale. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSearchCriteriaImpl
public AbstractSearchCriteriaImpl()
getLocale
public java.util.Locale getLocale()
- Returns the
Locale.
- Specified by:
getLocale in interface SearchCriteria
- Returns:
- the
Locale
isFuzzySearchDisabled
public boolean isFuzzySearchDisabled()
- Returns whether or not a fuzzy search should be performed for this query.
- Specified by:
isFuzzySearchDisabled in interface SearchCriteria
- Returns:
- true if fuzzy search is disabled, false otherwise
setFuzzySearchDisabled
public void setFuzzySearchDisabled(boolean fuzzySearchDisabled)
- Sets whether or not a fuzzy search should be performed for this query.
- Specified by:
setFuzzySearchDisabled in interface SearchCriteria
- Parameters:
fuzzySearchDisabled - whether or not fuzzy search is disabled
setLocale
public void setLocale(java.util.Locale locale)
- Sets the
Locale. Some contents are indexed in multiple locales. The Locale given here decides what contents get
searched.
e.g. If you give en, only English contents get searched. You can give null to search on system default locale.
- Specified by:
setLocale in interface SearchCriteria
- Parameters:
locale - the Locale