com.elasticpath.persistence.support
Interface RelationCriterion

All Known Implementing Classes:
AbstractRelationCriterionImpl, HibernateRelationCriterionAndImpl, HibernateRelationCriterionOrImpl

public interface RelationCriterion

RelationCriterion represents the relational criteria around two PropertyCriterion.


Method Summary
 java.lang.Object getCriterion()
          Return the persistence layer specfic criterion object, i.e.
 PropertyCriterion getPropertyCriterion1()
          Gets the first PropertyCriterion.
 PropertyCriterion getPropertyCriterion2()
          Gets the second PropertyCriterion.
 void setPropertyCriterion1(PropertyCriterion propertyCriterion1)
          Sets the first PropertyCriterion.
 void setPropertyCriterion2(PropertyCriterion propertyCriterion2)
          Sets the second PropertyCriterion.
 

Method Detail

getCriterion

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

Returns:
criterion object

getPropertyCriterion1

PropertyCriterion getPropertyCriterion1()
Gets the first PropertyCriterion.

Returns:
the first PropertyCriterion.

getPropertyCriterion2

PropertyCriterion getPropertyCriterion2()
Gets the second PropertyCriterion.

Returns:
the second PropertyCriterion.

setPropertyCriterion1

void setPropertyCriterion1(PropertyCriterion propertyCriterion1)
Sets the first PropertyCriterion.

Parameters:
propertyCriterion1 - the first PropertyCriterion.

setPropertyCriterion2

void setPropertyCriterion2(PropertyCriterion propertyCriterion2)
Sets the second PropertyCriterion.

Parameters:
propertyCriterion2 - the second PropertyCriterion.