org.hibernate.envers.query.criteria
Class CriteriaTools

java.lang.Object
  extended by org.hibernate.envers.query.criteria.CriteriaTools

public class CriteriaTools
extends Object


Method Summary
static void checkPropertyNotARelation(AuditConfiguration verCfg, String entityName, String propertyName)
           
static String determinePropertyName(AuditConfiguration auditCfg, AuditReaderImplementor versionsReader, String entityName, PropertyNameGetter propertyNameGetter)
           
static String determinePropertyName(AuditConfiguration auditCfg, AuditReaderImplementor versionsReader, String entityName, String propertyName)
           
static RelationDescription getRelatedEntity(AuditConfiguration verCfg, String entityName, String propertyName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPropertyNotARelation

public static void checkPropertyNotARelation(AuditConfiguration verCfg,
                                             String entityName,
                                             String propertyName)
                                      throws AuditException
Throws:
AuditException

getRelatedEntity

public static RelationDescription getRelatedEntity(AuditConfiguration verCfg,
                                                   String entityName,
                                                   String propertyName)
                                            throws AuditException
Throws:
AuditException

determinePropertyName

public static String determinePropertyName(AuditConfiguration auditCfg,
                                           AuditReaderImplementor versionsReader,
                                           String entityName,
                                           PropertyNameGetter propertyNameGetter)
See Also:
determinePropertyName(AuditConfiguration, AuditReaderImplementor, String, String)

determinePropertyName

public static String determinePropertyName(AuditConfiguration auditCfg,
                                           AuditReaderImplementor versionsReader,
                                           String entityName,
                                           String propertyName)
Parameters:
auditCfg - Audit configuration.
versionsReader - Versions reader.
entityName - Original entity name (not audited).
propertyName - Property name or placeholder.
Returns:
Path to property. Handles identifier placeholder used by AuditId.


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