public class AuditProperty<T> extends Object implements AuditProjection
AuditProjection.ProjectionData
Constructor and Description |
---|
AuditProperty(String alias,
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(EnversService enversService,
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(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,
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 |
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, 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 eqProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion neProperty(String otherPropertyName)
public AuditCriterion neProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion ltProperty(String otherPropertyName)
public AuditCriterion ltProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion leProperty(String otherPropertyName)
public AuditCriterion leProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion gtProperty(String otherPropertyName)
public AuditCriterion gtProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion geProperty(String otherPropertyName)
public AuditCriterion geProperty(String otherAlias, String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.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 AuditProjection.ProjectionData getData(EnversService enversService)
getData
in interface AuditProjection
enversService
- The EnversServicepublic AuditOrder asc()
public AuditOrder desc()
public Object convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, String entityName, Number revision, Object value)
convertQueryResult
in interface AuditProjection
enversService
- the Envers serviceentityInstantiator
- the entity instantiatorentityName
- the name of the entity for which the projection has been addedrevision
- the revisionvalue
- the value to convertCopyright © 2017 JBoss by Red Hat. All rights reserved.