Class AbstractSearchCriteriaImpl

  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by
All Implemented Interfaces:
EpDomain, Persistence, SearchCriteria, Transient,
Direct Known Subclasses:
CategorySearchCriteriaImpl, CustomerSearchCriteriaImpl, OrderSearchCriteriaImpl, ProductSearchCriteriaImpl

public class AbstractSearchCriteriaImpl
extends AbstractPersistenceImpl
implements SearchCriteria

An abstract implementation of SearchCriteria.

See Also:
Serialized Form

Field Summary
Fields inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
Constructor Summary
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 com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath

Constructor Detail


public AbstractSearchCriteriaImpl()
Method Detail


public java.util.Locale getLocale()
Returns the Locale.

Specified by:
getLocale in interface SearchCriteria
the Locale


public boolean isFuzzySearchDisabled()
Returns whether or not a fuzzy search should be performed for this query.

Specified by:
isFuzzySearchDisabled in interface SearchCriteria
true if fuzzy search is disabled, false otherwise


public void setFuzzySearchDisabled(boolean fuzzySearchDisabled)
Sets whether or not a fuzzy search should be performed for this query.

Specified by:
setFuzzySearchDisabled in interface SearchCriteria
fuzzySearchDisabled - whether or not fuzzy search is disabled


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
locale - the Locale