org.hibernate.envers.entities.mapper.relation.query
Class OneEntityQueryGenerator

java.lang.Object
  extended by org.hibernate.envers.entities.mapper.relation.query.OneEntityQueryGenerator
All Implemented Interfaces:
RelationQueryGenerator

public final class OneEntityQueryGenerator
extends Object
implements RelationQueryGenerator

Selects data from a relation middle-table only.


Constructor Summary
OneEntityQueryGenerator(AuditEntitiesConfiguration verEntCfg, AuditStrategy auditStrategy, String versionsMiddleEntityName, MiddleIdData referencingIdData, MiddleComponentData... componentDatas)
           
 
Method Summary
 Query getQuery(AuditReaderImplementor versionsReader, Object primaryKey, Number revision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneEntityQueryGenerator

public OneEntityQueryGenerator(AuditEntitiesConfiguration verEntCfg,
                               AuditStrategy auditStrategy,
                               String versionsMiddleEntityName,
                               MiddleIdData referencingIdData,
                               MiddleComponentData... componentDatas)
Method Detail

getQuery

public Query getQuery(AuditReaderImplementor versionsReader,
                      Object primaryKey,
                      Number revision)
Specified by:
getQuery in interface RelationQueryGenerator


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.