public class AuditProperty<T> extends Object implements AuditProjection
Create restrictions, projections and specify order for a property of an audited entity.
AuditProjection.ProjectionData| Constructor and Description |
|---|
AuditProperty(String alias,
org.hibernate.envers.query.internal.property.PropertyNameGetter propertyNameGetter) |
| Modifier and Type | Method and Description |
|---|---|
AuditOrder |
asc()
Sort the results by the property in ascending order
|
AuditCriterion |
between(T lo,
T hi)
Apply a "between" constraint
|
Object |
convertQueryResult(org.hibernate.envers.boot.internal.EnversService enversService,
org.hibernate.envers.internal.entities.EntityInstantiator entityInstantiator,
String entityName,
Number revision,
Object value) |
AuditProjection |
count()
Projection counting the values
|
AuditProjection |
countDistinct()
Projection counting distinct values
|
AuditOrder |
desc()
Sort the results by the property in descending order
|
AuditProjection |
distinct()
Projection on distinct values
|
AuditCriterion |
eq(T value)
Apply an "equal" constraint
|
AuditCriterion |
eqProperty(String otherPropertyName)
Apply an "equal" constraint to another property
|
AuditCriterion |
eqProperty(String otherAlias,
String otherPropertyName)
Apply an "equal" constraint to another property
|
AuditProjection |
function(String functionName)
Projection using a custom function
|
AuditCriterion |
ge(T value)
Apply a "greater than or equal" constraint
|
AuditCriterion |
geProperty(String otherPropertyName)
Apply a "greater than or equal" constraint to another property
|
AuditCriterion |
geProperty(String otherAlias,
String otherPropertyName)
Apply a "greater than or equal" constraint to another property
|
AuditProjection.ProjectionData |
getData(org.hibernate.envers.boot.internal.EnversService enversService) |
AuditCriterion |
gt(T value)
Apply a "greater than" constraint
|
AuditCriterion |
gtProperty(String otherPropertyName)
Apply a "greater than" constraint to another property
|
AuditCriterion |
gtProperty(String otherAlias,
String otherPropertyName)
Apply a "greater than" constraint to another property
|
AuditCriterion |
hasChanged() |
AuditCriterion |
hasNotChanged() |
AuditCriterion |
ilike(String value,
org.hibernate.criterion.MatchMode matchMode)
Deprecated.
since 5.2, use
ilike(String, MatchMode). To be removed in 6.0. |
AuditCriterion |
ilike(String value,
MatchMode matchMode)
Apply on "ilike" constraint
|
AuditCriterion |
ilike(T value)
Apply an "ilike" constraint
|
AuditCriterion |
in(Collection values)
Apply an "in" constraint
|
AuditCriterion |
in(T[] values)
Apply an "in" constraint
|
AuditCriterion |
isNotNull()
Apply an "is not null" constraint to the another property
|
AuditCriterion |
isNull()
Apply an "is null" constraint
|
AuditCriterion |
le(T value)
Apply a "less than or equal" constraint
|
AuditCriterion |
leProperty(String otherPropertyName)
Apply a "less than or equal" constraint to another property
|
AuditCriterion |
leProperty(String otherAlias,
String otherPropertyName)
Apply a "less than or equal" constraint to another property
|
AuditCriterion |
like(String value,
MatchMode matchMode)
Apply a "like" constraint
|
AuditCriterion |
like(T value)
Apply a "like" constraint
|
AuditCriterion |
lt(T value)
Apply a "less than" constraint
|
AuditCriterion |
ltProperty(String otherPropertyName)
Apply a "less than" constraint to another property
|
AuditCriterion |
ltProperty(String otherAlias,
String otherPropertyName)
Apply a "less than" constraint to another property
|
AuditProjection |
max()
Projection on the maximum value
|
AggregatedAuditExpression |
maximize()
Apply a "maximalize" constraint, with the ability to specify further constraints on the maximized
property
|
AuditProjection |
min()
Projection on the minimum value
|
AggregatedAuditExpression |
minimize()
Apply a "minimize" constraint, with the ability to specify further constraints on the minimized
property
|
AuditCriterion |
ne(T value)
Apply a "not equal" constraint
|
AuditCriterion |
neProperty(String otherPropertyName)
Apply a "not equal" constraint to another property
|
AuditCriterion |
neProperty(String otherAlias,
String otherPropertyName)
Apply a "not equal" constraint to another property
|
public AuditProperty(String alias, org.hibernate.envers.query.internal.property.PropertyNameGetter propertyNameGetter)
public AuditCriterion hasChanged()
public AuditCriterion hasNotChanged()
public AuditCriterion eq(T value)
Apply an "equal" constraint
public AuditCriterion ne(T value)
Apply a "not equal" constraint
public AuditCriterion like(T value)
Apply a "like" constraint
public AuditCriterion like(String value, MatchMode matchMode)
Apply a "like" constraint
public AuditCriterion ilike(T value)
Apply an "ilike" constraint
@Deprecated public AuditCriterion ilike(String value, org.hibernate.criterion.MatchMode matchMode)
ilike(String, MatchMode). To be removed in 6.0.Apply an "ilike" constraint
public AuditCriterion ilike(String value, MatchMode matchMode)
Apply on "ilike" constraint
public AuditCriterion gt(T value)
Apply a "greater than" constraint
public AuditCriterion lt(T value)
Apply a "less than" constraint
public AuditCriterion le(T value)
Apply a "less than or equal" constraint
public AuditCriterion ge(T value)
Apply a "greater than or equal" constraint
public AuditCriterion between(T lo, T hi)
Apply a "between" constraint
public AuditCriterion in(T[] values)
Apply an "in" constraint
public AuditCriterion in(Collection values)
Apply an "in" constraint
public AuditCriterion isNull()
Apply an "is null" constraint
public AuditCriterion eqProperty(String otherPropertyName)
Apply an "equal" constraint to another property
public AuditCriterion eqProperty(String otherAlias, String otherPropertyName)
Apply an "equal" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion neProperty(String otherPropertyName)
Apply a "not equal" constraint to another property
public AuditCriterion neProperty(String otherAlias, String otherPropertyName)
Apply a "not equal" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion ltProperty(String otherPropertyName)
Apply a "less than" constraint to another property
public AuditCriterion ltProperty(String otherAlias, String otherPropertyName)
Apply a "less than" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion leProperty(String otherPropertyName)
Apply a "less than or equal" constraint to another property
public AuditCriterion leProperty(String otherAlias, String otherPropertyName)
Apply a "less than or equal" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion gtProperty(String otherPropertyName)
Apply a "greater than" constraint to another property
public AuditCriterion gtProperty(String otherAlias, String otherPropertyName)
Apply a "greater than" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion geProperty(String otherPropertyName)
Apply a "greater than or equal" constraint to another property
public AuditCriterion geProperty(String otherAlias, String otherPropertyName)
Apply a "greater than or equal" constraint to another property
otherAlias - the alias of the entity which owns the other property.public AuditCriterion isNotNull()
Apply an "is not null" constraint to the another property
public AggregatedAuditExpression maximize()
Apply a "maximalize" constraint, with the ability to specify further constraints on the maximized property
public AggregatedAuditExpression minimize()
Apply a "minimize" constraint, with the ability to specify further constraints on the minimized property
public AuditProjection max()
Projection on the maximum value
public AuditProjection min()
Projection on the minimum value
public AuditProjection count()
Projection counting the values
public AuditProjection countDistinct()
Projection counting distinct values
public AuditProjection distinct()
Projection on distinct values
public AuditProjection function(String functionName)
Projection using a custom function
public AuditProjection.ProjectionData getData(org.hibernate.envers.boot.internal.EnversService enversService)
getData in interface AuditProjectionenversService - The EnversServicepublic AuditOrder asc()
Sort the results by the property in ascending order
public AuditOrder desc()
Sort the results by the property in descending order
public Object convertQueryResult(org.hibernate.envers.boot.internal.EnversService enversService, org.hibernate.envers.internal.entities.EntityInstantiator entityInstantiator, String entityName, Number revision, Object value)
convertQueryResult in interface AuditProjectionenversService - the Envers serviceentityInstantiator - the entity instantiatorentityName - the name of the entity for which the projection has been addedrevision - the revisionvalue - the value to convertCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.