Class AuditRelatedId
- java.lang.Object
- org.hibernate.envers.query.criteria.AuditRelatedId
public classAuditRelatedIdextendsObject
Create restrictions on an id of an entity related to an audited entity.
Constructor Summary
Constructors Constructor Description AuditRelatedId(String alias,PropertyNameGetter propertyNameGetter)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditCriterioneq(Object id)Applies an "equals" criteria predicate.AuditCriterionin(Object[] values)Applies an "in" criteria predicate.AuditCriterionne(Object id)Applies a "not equals" criteria predicate.
Constructor Detail
AuditRelatedId
public AuditRelatedId(String alias,PropertyNameGetter propertyNameGetter)
Method Detail
eq
public AuditCriterion eq(Object id)
Applies an "equals" criteria predicate.- Parameters:
id- the value to test equality with- Returns:
- the criterion.
ne
public AuditCriterion ne(Object id)
Applies a "not equals" criteria predicate.- Parameters:
id- the value to test inequality with- Returns:
- the criterion
in
public AuditCriterion in(Object[] values)
Applies an "in" criteria predicate.- Parameters:
values- the values to test with- Returns:
- the criterion