com.elasticpath.persistence.support
Interface PropertyCriterion

All Known Implementing Classes:
AbstractPropertyCriterionImpl, HibernatePropertyCriterionEqualImpl, HibernatePropertyCriterionLikeImpl

public interface PropertyCriterion

PropertyCriteria represents the criteria around a domain object property.


Method Summary
 java.lang.Object getCriterion()
          Return the persistence layer specfic criterion object, i.e.
 java.lang.String getPropertyName()
          Gets the name of the property to be checked.
 java.lang.Object[] getRestrictionValues()
          Gets the restriction values, i.e., the value that the property should equal to.
 PropertyCriterion setPropertyName(java.lang.String propertyName)
          Sets the name of the property to be checked.
 PropertyCriterion setRestrictionValues(java.lang.Object[] restrictionValues)
          Sets the restriction values, i.e., the value that the property should equal to.
 

Method Detail

getCriterion

java.lang.Object getCriterion()
Return the persistence layer specfic criterion object, i.e. org.hibernate.criterion.

Returns:
criterion object

getPropertyName

java.lang.String getPropertyName()
Gets the name of the property to be checked.

Returns:
name of the property

getRestrictionValues

java.lang.Object[] getRestrictionValues()
Gets the restriction values, i.e., the value that the property should equal to.

Returns:
the restriction values

setPropertyName

PropertyCriterion setPropertyName(java.lang.String propertyName)
Sets the name of the property to be checked.

Parameters:
propertyName - name of the property
Returns:
current propertyCriterion instance

setRestrictionValues

PropertyCriterion setRestrictionValues(java.lang.Object[] restrictionValues)
Sets the restriction values, i.e., the value that the property should equal to.

Parameters:
restrictionValues - restriction values
Returns:
current propertyCriterion instance