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

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

public final class TwoEntityQueryGenerator
extends Object
implements RelationQueryGenerator

Selects data from a relation middle-table and a related versions entity.

Author:
Adam Warski (adam at warski dot org)

Constructor Summary
TwoEntityQueryGenerator(GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, AuditStrategy auditStrategy, String versionsMiddleEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, 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

TwoEntityQueryGenerator

public TwoEntityQueryGenerator(GlobalConfiguration globalCfg,
                               AuditEntitiesConfiguration verEntCfg,
                               AuditStrategy auditStrategy,
                               String versionsMiddleEntityName,
                               MiddleIdData referencingIdData,
                               MiddleIdData referencedIdData,
                               MiddleComponentData... componentDatas)
Method Detail

getQuery

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


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