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

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

public final class ThreeEntityQueryGenerator
extends AbstractRelationQueryGenerator

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


Field Summary
 
Fields inherited from class org.hibernate.envers.entities.mapper.relation.query.AbstractRelationQueryGenerator
referencingIdData, revisionTypeInId, verEntCfg
 
Constructor Summary
ThreeEntityQueryGenerator(GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, AuditStrategy auditStrategy, String versionsMiddleEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, MiddleIdData indexIdData, boolean revisionTypeInId, MiddleComponentData... componentData)
           
 
Method Summary
protected  String getQueryRemovedString()
           
protected  String getQueryString()
           
 
Methods inherited from class org.hibernate.envers.entities.mapper.relation.query.AbstractRelationQueryGenerator
getQuery, getRevisionTypePath, queryToString, queryToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreeEntityQueryGenerator

public ThreeEntityQueryGenerator(GlobalConfiguration globalCfg,
                                 AuditEntitiesConfiguration verEntCfg,
                                 AuditStrategy auditStrategy,
                                 String versionsMiddleEntityName,
                                 MiddleIdData referencingIdData,
                                 MiddleIdData referencedIdData,
                                 MiddleIdData indexIdData,
                                 boolean revisionTypeInId,
                                 MiddleComponentData... componentData)
Method Detail

getQueryString

protected String getQueryString()
Specified by:
getQueryString in class AbstractRelationQueryGenerator
Returns:
Query used to retrieve state of audited entity valid at a given revision.

getQueryRemovedString

protected String getQueryRemovedString()
Specified by:
getQueryRemovedString in class AbstractRelationQueryGenerator
Returns:
Query executed to retrieve state of audited entity valid at previous revision or removed during exactly specified revision number. Used only when traversing deleted entities graph.


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