Class OneEntityQueryGenerator
java.lang.Object
org.hibernate.envers.internal.entities.mapper.relation.query.AbstractRelationQueryGenerator
org.hibernate.envers.internal.entities.mapper.relation.query.OneEntityQueryGenerator
- All Implemented Interfaces:
RelationQueryGenerator
Selects data from a relation middle-table only.
-
Field Summary
Fields inherited from class org.hibernate.envers.internal.entities.mapper.relation.query.AbstractRelationQueryGenerator
auditStrategy, configuration, entityName, orderByCollectionRole, referencingIdData, revisionTypeInId
-
Constructor Summary
ConstructorsConstructorDescriptionOneEntityQueryGenerator
(Configuration configuration, String versionsMiddleEntityName, MiddleIdData referencingIdData, boolean revisionTypeInId, MiddleComponentData... componentData) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Apply predicates to fetch data and deletions that took place during the same revision.protected void
applyValidPredicates
(QueryBuilder qb, Parameters rootParameters, boolean inclusive) Apply predicates used to fetch actual data.protected QueryBuilder
buildQueryBuilderCommon
(SessionFactoryImplementor sessionFactory) Build the common aspects of aQueryBuilder
used by both query and query-remove strings.Methods inherited from class org.hibernate.envers.internal.entities.mapper.relation.query.AbstractRelationQueryGenerator
getQuery, getRevisionTypePath
-
Constructor Details
-
OneEntityQueryGenerator
public OneEntityQueryGenerator(Configuration configuration, String versionsMiddleEntityName, MiddleIdData referencingIdData, boolean revisionTypeInId, MiddleComponentData... componentData)
-
-
Method Details
-
buildQueryBuilderCommon
Description copied from class:AbstractRelationQueryGenerator
Build the common aspects of aQueryBuilder
used by both query and query-remove strings.- Specified by:
buildQueryBuilderCommon
in classAbstractRelationQueryGenerator
- Parameters:
sessionFactory
- The session factory.- Returns:
- The constructed query builder instance.
-
applyValidPredicates
Description copied from class:AbstractRelationQueryGenerator
Apply predicates used to fetch actual data.- Specified by:
applyValidPredicates
in classAbstractRelationQueryGenerator
- Parameters:
qb
- The query builder instance to apply predicates against.rootParameters
- The root query parametersinclusive
- Whether its inclusive or not.
-
applyValidAndRemovePredicates
Description copied from class:AbstractRelationQueryGenerator
Apply predicates to fetch data and deletions that took place during the same revision.- Specified by:
applyValidAndRemovePredicates
in classAbstractRelationQueryGenerator
- Parameters:
remQb
- The query builder instance to apply predicates against.
-