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

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

public final class OneAuditEntityQueryGenerator
extends AbstractRelationQueryGenerator

Selects data from an audit entity.


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

OneAuditEntityQueryGenerator

public OneAuditEntityQueryGenerator(GlobalConfiguration globalCfg,
                                    AuditEntitiesConfiguration verEntCfg,
                                    AuditStrategy auditStrategy,
                                    MiddleIdData referencingIdData,
                                    String referencedEntityName,
                                    MiddleIdData referencedIdData,
                                    boolean revisionTypeInId)
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.