com.elasticpath.persistence.support.impl
Class DistinctAttributeValueCriterionImpl
java.lang.Object
com.elasticpath.persistence.support.impl.DistinctAttributeValueCriterionImpl
- All Implemented Interfaces:
- DistinctAttributeValueCriterion
public class DistinctAttributeValueCriterionImpl
- extends java.lang.Object
- implements DistinctAttributeValueCriterion
Creates criterion for querying the persistence layer for distinct lists of attribute values.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DistinctAttributeValueCriterionImpl
public DistinctAttributeValueCriterionImpl()
getDistinctAttributeMultiValueCriterion
public java.lang.String getDistinctAttributeMultiValueCriterion(Attribute attribute)
- Creates a criterion String for querying the persistence layer for a distinct list of values that are present for a given
AttributeValue
.
These search all the multi values for short text type.
- Specified by:
getDistinctAttributeMultiValueCriterion
in interface DistinctAttributeValueCriterion
- Parameters:
attribute
- the Attribute
whose values are to be returned
- Returns:
- a distinct list of attribute values for that attribute
getDistinctAttributeValueCriterion
public java.lang.String getDistinctAttributeValueCriterion(Attribute attribute)
- Creates a criterion String for querying the persistence layer for a distinct list of values that are present for a given
AttributeValue
.
- Specified by:
getDistinctAttributeValueCriterion
in interface DistinctAttributeValueCriterion
- Parameters:
attribute
- the Attribute
whose values are to be returned
- Returns:
- a distinct list of attribute values for that attribute