public class AuditProperty<T> extends Object implements AuditProjection
Constructor and Description |
---|
AuditProperty(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
|
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
|
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
|
Triple<String,String,Boolean> |
getData(EnversService enversService) |
AuditCriterion |
gt(T value)
Apply a "greater than" constraint
|
AuditCriterion |
gtProperty(String otherPropertyName)
Apply a "greater than" constraint to another property
|
AuditCriterion |
hasChanged() |
AuditCriterion |
hasNotChanged() |
AuditCriterion |
ilike(String value,
MatchMode matchMode)
Apply an "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 |
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
|
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
|
public AuditProperty(PropertyNameGetter propertyNameGetter)
public AuditCriterion hasChanged()
public AuditCriterion hasNotChanged()
public AuditCriterion eq(T value)
public AuditCriterion ne(T value)
public AuditCriterion like(T value)
public AuditCriterion like(String value, MatchMode matchMode)
public AuditCriterion ilike(T value)
public AuditCriterion ilike(String value, MatchMode matchMode)
public AuditCriterion gt(T value)
public AuditCriterion lt(T value)
public AuditCriterion le(T value)
public AuditCriterion ge(T value)
public AuditCriterion between(T lo, T hi)
public AuditCriterion in(T[] values)
public AuditCriterion in(Collection values)
public AuditCriterion isNull()
public AuditCriterion eqProperty(String otherPropertyName)
public AuditCriterion neProperty(String otherPropertyName)
public AuditCriterion ltProperty(String otherPropertyName)
public AuditCriterion leProperty(String otherPropertyName)
public AuditCriterion gtProperty(String otherPropertyName)
public AuditCriterion geProperty(String otherPropertyName)
public AuditCriterion isNotNull()
public AggregatedAuditExpression maximize()
public AggregatedAuditExpression minimize()
public AuditProjection max()
public AuditProjection min()
public AuditProjection count()
public AuditProjection countDistinct()
public AuditProjection distinct()
public AuditProjection function(String functionName)
public Triple<String,String,Boolean> getData(EnversService enversService)
getData
in interface AuditProjection
enversService
- The EnversServicepublic AuditOrder asc()
public AuditOrder desc()
Copyright © 2016 JBoss by Red Hat. All rights reserved.