public class AuditProperty<T> extends java.lang.Object implements AuditProjection
AuditProjection.ProjectionData
Constructor and Description |
---|
AuditProperty(java.lang.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
|
java.lang.Object |
convertQueryResult(EnversService enversService,
EntityInstantiator entityInstantiator,
java.lang.String entityName,
java.lang.Number revision,
java.lang.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(java.lang.String otherPropertyName)
Apply an "equal" constraint to another property
|
AuditCriterion |
eqProperty(java.lang.String otherAlias,
java.lang.String otherPropertyName)
Apply an "equal" constraint to another property
|
AuditProjection |
function(java.lang.String functionName)
Projection using a custom function
|
AuditCriterion |
ge(T value)
Apply a "greater than or equal" constraint
|
AuditCriterion |
geProperty(java.lang.String otherPropertyName)
Apply a "greater than or equal" constraint to another property
|
AuditCriterion |
geProperty(java.lang.String otherAlias,
java.lang.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(java.lang.String otherPropertyName)
Apply a "greater than" constraint to another property
|
AuditCriterion |
gtProperty(java.lang.String otherAlias,
java.lang.String otherPropertyName)
Apply a "greater than" constraint to another property
|
AuditCriterion |
hasChanged() |
AuditCriterion |
hasNotChanged() |
AuditCriterion |
ilike(java.lang.String value,
MatchMode matchMode)
Apply an "ilike" constraint
|
AuditCriterion |
ilike(T value)
Apply an "ilike" constraint
|
AuditCriterion |
in(java.util.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(java.lang.String otherPropertyName)
Apply a "less than or equal" constraint to another property
|
AuditCriterion |
leProperty(java.lang.String otherAlias,
java.lang.String otherPropertyName)
Apply a "less than or equal" constraint to another property
|
AuditCriterion |
like(java.lang.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(java.lang.String otherPropertyName)
Apply a "less than" constraint to another property
|
AuditCriterion |
ltProperty(java.lang.String otherAlias,
java.lang.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(java.lang.String otherPropertyName)
Apply a "not equal" constraint to another property
|
AuditCriterion |
neProperty(java.lang.String otherAlias,
java.lang.String otherPropertyName)
Apply a "not equal" constraint to another property
|
public AuditProperty(java.lang.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(java.lang.String value, MatchMode matchMode)
public AuditCriterion ilike(T value)
public AuditCriterion ilike(java.lang.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(java.util.Collection values)
public AuditCriterion isNull()
public AuditCriterion eqProperty(java.lang.String otherPropertyName)
public AuditCriterion eqProperty(java.lang.String otherAlias, java.lang.String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion neProperty(java.lang.String otherPropertyName)
public AuditCriterion neProperty(java.lang.String otherAlias, java.lang.String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion ltProperty(java.lang.String otherPropertyName)
public AuditCriterion ltProperty(java.lang.String otherAlias, java.lang.String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion leProperty(java.lang.String otherPropertyName)
public AuditCriterion leProperty(java.lang.String otherAlias, java.lang.String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion gtProperty(java.lang.String otherPropertyName)
public AuditCriterion gtProperty(java.lang.String otherAlias, java.lang.String otherPropertyName)
otherAlias
- the alias of the entity which owns the other property.public AuditCriterion geProperty(java.lang.String otherPropertyName)
public AuditCriterion geProperty(java.lang.String otherAlias, java.lang.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(java.lang.String functionName)
public AuditProjection.ProjectionData getData(EnversService enversService)
getData
in interface AuditProjection
enversService
- The EnversServicepublic AuditOrder asc()
public AuditOrder desc()
public java.lang.Object convertQueryResult(EnversService enversService, EntityInstantiator entityInstantiator, java.lang.String entityName, java.lang.Number revision, java.lang.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 © 2001-2018 Red Hat, Inc. All Rights Reserved.