com.elasticpath.persistence.support.impl
Class AbstractPropertyCriterionImpl

java.lang.Object
  extended by com.elasticpath.persistence.support.impl.AbstractPropertyCriterionImpl
All Implemented Interfaces:
PropertyCriterion
Direct Known Subclasses:
HibernatePropertyCriterionEqualImpl, HibernatePropertyCriterionLikeImpl

public abstract class AbstractPropertyCriterionImpl
extends java.lang.Object
implements PropertyCriterion

PropertyCriteriaImpl represents the criteria around a domain object property.


Constructor Summary
AbstractPropertyCriterionImpl()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.persistence.support.PropertyCriterion
getCriterion
 

Constructor Detail

AbstractPropertyCriterionImpl

public AbstractPropertyCriterionImpl()
Method Detail

getPropertyName

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

Specified by:
getPropertyName in interface PropertyCriterion
Returns:
name of the property

getRestrictionValues

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

Specified by:
getRestrictionValues in interface PropertyCriterion
Returns:
the restriction values

setPropertyName

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

Specified by:
setPropertyName in interface PropertyCriterion
Parameters:
propertyName - name of the property
Returns:
current propertyCriterion instance

setRestrictionValues

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

Specified by:
setRestrictionValues in interface PropertyCriterion
Parameters:
restrictionValues - restriction values
Returns:
current propertyCriterion instance