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

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

public final class TwoEntityQueryGenerator
extends AbstractRelationQueryGenerator

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


Field Summary
 
Fields inherited from class org.hibernate.envers.entities.mapper.relation.query.AbstractRelationQueryGenerator
referencingIdData, revisionTypeInId, verEntCfg
 
Constructor Summary
TwoEntityQueryGenerator(GlobalConfiguration globalCfg, AuditEntitiesConfiguration verEntCfg, AuditStrategy auditStrategy, String versionsMiddleEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, 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

TwoEntityQueryGenerator

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