com.elasticpath.persistence.support
Interface DistinctAttributeValueCriterion

All Known Implementing Classes:
DistinctAttributeValueCriterionImpl

public interface DistinctAttributeValueCriterion

Creates criterion for querying the persistence layer for distinct lists of attribute values.


Method Summary
 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.
 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.
 

Method Detail

getDistinctAttributeMultiValueCriterion

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.

Parameters:
attribute - the Attribute whose values are to be returned
Returns:
a distinct list of attribute values for that attribute

getDistinctAttributeValueCriterion

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.

Parameters:
attribute - the Attribute whose values are to be returned
Returns:
a distinct list of attribute values for that attribute