com.elasticpath.domain.search.impl
Class AbstractSearchCriteriaImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by 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

Field Summary
 
Fields inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
serialVersionUID
 
Constructor Summary
AbstractSearchCriteriaImpl()
           
 
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

AbstractSearchCriteriaImpl

public AbstractSearchCriteriaImpl()
Method Detail

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