org.hibernate.envers.query.criteria
Class AuditId<T>

java.lang.Object
  extended by org.hibernate.envers.query.criteria.AuditProperty<T>
      extended by org.hibernate.envers.query.criteria.AuditId<T>
All Implemented Interfaces:
AuditProjection

public class AuditId<T>
extends AuditProperty<T>

Create restrictions and projections for the id of an audited entity.


Field Summary
static String IDENTIFIER_PLACEHOLDER
           
 
Constructor Summary
AuditId()
           
 
Method Summary
 AuditProjection count(String idPropertyName)
          Deprecated. Use AuditProperty.count().
 AuditCriterion eq(Object id)
          Apply an "equal" constraint
 AuditCriterion hasChanged()
           
 AuditCriterion hasNotChanged()
           
 AuditCriterion ne(Object id)
          Apply a "not equal" constraint
 
Methods inherited from class org.hibernate.envers.query.criteria.AuditProperty
asc, between, count, countDistinct, desc, distinct, eqProperty, function, ge, geProperty, getData, gt, gtProperty, in, in, isNotNull, isNull, le, leProperty, like, like, lt, ltProperty, max, maximize, min, minimize, neProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER_PLACEHOLDER

public static final String IDENTIFIER_PLACEHOLDER
See Also:
Constant Field Values
Constructor Detail

AuditId

public AuditId()
Method Detail

eq

public AuditCriterion eq(Object id)
Apply an "equal" constraint

Overrides:
eq in class AuditProperty<T>

ne

public AuditCriterion ne(Object id)
Apply a "not equal" constraint

Overrides:
ne in class AuditProperty<T>

count

public AuditProjection count(String idPropertyName)
Deprecated. Use AuditProperty.count().

Projection counting the values

Parameters:
idPropertyName - Name of the identifier property

hasChanged

public AuditCriterion hasChanged()
Overrides:
hasChanged in class AuditProperty<T>

hasNotChanged

public AuditCriterion hasNotChanged()
Overrides:
hasNotChanged in class AuditProperty<T>


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.