public class AuditEntity extends Object
Modifier and Type | Method and Description |
---|---|
static AuditCriterion |
and(AuditCriterion lhs,
AuditCriterion rhs)
Return the conjuction of two criterions.
|
static AuditConjunction |
conjunction()
Group criterions together in a single conjunction (A and B and C…).
|
static AuditDisjunction |
disjunction()
Group criterions together in a single disjunction (A or B or C…).
|
static AuditId |
id() |
static AuditId |
id(String alias) |
static AuditCriterion |
not(AuditCriterion expression)
Return the negation of a criterion.
|
static AuditCriterion |
or(AuditCriterion lhs,
AuditCriterion rhs)
Return the disjuction of two criterions.
|
static AuditProperty<Object> |
property(String propertyName)
Create restrictions, projections and specify order for a property of an audited entity.
|
static AuditProperty<Object> |
property(String alias,
String propertyName)
Create restrictions, projections and specify order for a property of an audited entity.
|
static AuditRelatedId |
relatedId(String propertyName)
Create restrictions on an id of a related entity.
|
static AuditRelatedId |
relatedId(String alias,
String propertyName)
Create restrictions on an id of a related entity.
|
static AuditProperty<Number> |
revisionNumber()
Create restrictions, projections and specify order for the revision number, corresponding to an
audited entity.
|
static AuditProperty<Number> |
revisionNumber(String alias)
Create restrictions, projections and specify order for the revision number, corresponding to an
audited entity.
|
static AuditProperty<Object> |
revisionProperty(String propertyName)
Create restrictions, projections and specify order for a property of the revision entity,
corresponding to an audited entity.
|
static AuditProperty<Object> |
revisionProperty(String alias,
String propertyName)
Create restrictions, projections and specify order for a property of the revision entity,
corresponding to an audited entity.
|
static AuditProperty<RevisionType> |
revisionType()
Create restrictions, projections and specify order for the revision type, corresponding to an
audited entity.
|
static AuditProperty<RevisionType> |
revisionType(String alias)
Create restrictions, projections and specify order for the revision type, corresponding to an
audited entity.
|
static AuditProjection |
selectEntity(boolean distinct)
Adds a projection to the current entity itself.
|
public static AuditId id()
public static AuditProperty<Object> property(String propertyName)
Create restrictions, projections and specify order for a property of an audited entity.
propertyName
- Name of the property.public static AuditProperty<Object> property(String alias, String propertyName)
Create restrictions, projections and specify order for a property of an audited entity.
alias
- the alias of the entity which owns the property.propertyName
- Name of the property.public static AuditProperty<Number> revisionNumber()
Create restrictions, projections and specify order for the revision number, corresponding to an audited entity.
public static AuditProperty<Number> revisionNumber(String alias)
Create restrictions, projections and specify order for the revision number, corresponding to an audited entity.
alias
- the alias of the entity which owns the revision number.public static AuditProperty<Object> revisionProperty(String propertyName)
Create restrictions, projections and specify order for a property of the revision entity, corresponding to an audited entity.
propertyName
- Name of the property.public static AuditProperty<Object> revisionProperty(String alias, String propertyName)
Create restrictions, projections and specify order for a property of the revision entity, corresponding to an audited entity.
alias
- the alias of the entity which owns the revision property.propertyName
- Name of the property.public static AuditProperty<RevisionType> revisionType()
Create restrictions, projections and specify order for the revision type, corresponding to an audited entity.
public static AuditProperty<RevisionType> revisionType(String alias)
Create restrictions, projections and specify order for the revision type, corresponding to an audited entity.
alias
- the alias of the entity which owns the revision type.public static AuditRelatedId relatedId(String propertyName)
Create restrictions on an id of a related entity.
propertyName
- Name of the property, which is the relation.public static AuditRelatedId relatedId(String alias, String propertyName)
Create restrictions on an id of a related entity.
alias
- the alias of the entity which owns the relation property.propertyName
- Name of the property, which is the relation.public static AuditCriterion and(AuditCriterion lhs, AuditCriterion rhs)
Return the conjuction of two criterions.
public static AuditCriterion or(AuditCriterion lhs, AuditCriterion rhs)
Return the disjuction of two criterions.
public static AuditCriterion not(AuditCriterion expression)
Return the negation of a criterion.
public static AuditConjunction conjunction()
Group criterions together in a single conjunction (A and B and C…).
public static AuditDisjunction disjunction()
Group criterions together in a single disjunction (A or B or C…).
public static AuditProjection selectEntity(boolean distinct)
Adds a projection to the current entity itself. Useful for selecting entities which are reached through associations within the query.
distinct
- whether to distinct select the entityCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.