Class ClassAuditingData
- java.lang.Object
-
- org.hibernate.envers.configuration.internal.metadata.reader.ClassAuditingData
-
- All Implemented Interfaces:
AuditedPropertiesHolder
public class ClassAuditingData extends Object implements AuditedPropertiesHolder
Boot-time audit data for a specific entity class.
-
-
Constructor Summary
Constructors Constructor Description ClassAuditingData(PersistentClass persistentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyAuditingData(String propertyName, PropertyAuditingData auditingData)
Add an audited property.boolean
contains(String propertyName)
List<AuditOverrideData>
getAuditingOverrides()
AuditTable
getAuditTable()
String
getEntityName()
Iterable<String>
getNonSyntheticPropertyNames()
PersistentClass
getPersistentClass()
PropertyAuditingData
getPropertyAuditingData(String propertyName)
Iterable<String>
getPropertyNames()
Map<String,String>
getSecondaryTableDictionary()
Iterable<PropertyAuditingData>
getSyntheticProperties()
boolean
isAudited()
boolean
isEmpty()
void
setAuditTable(AuditTable auditTable)
void
setDefaultAudited(boolean defaultAudited)
-
-
-
Constructor Detail
-
ClassAuditingData
public ClassAuditingData(PersistentClass persistentClass)
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceAuditedPropertiesHolder
- Returns:
- true if the holder contains any audited property
-
addPropertyAuditingData
public void addPropertyAuditingData(String propertyName, PropertyAuditingData auditingData)
Description copied from interface:AuditedPropertiesHolder
Add an audited property.- Specified by:
addPropertyAuditingData
in interfaceAuditedPropertiesHolder
- Parameters:
propertyName
- Name of the audited property.auditingData
- Data for the audited property.
-
getPropertyAuditingData
public PropertyAuditingData getPropertyAuditingData(String propertyName)
- Specified by:
getPropertyAuditingData
in interfaceAuditedPropertiesHolder
- Parameters:
propertyName
- Name of a property.- Returns:
- Auditing data for the property.
-
getAuditingOverrides
public List<AuditOverrideData> getAuditingOverrides()
- Specified by:
getAuditingOverrides
in interfaceAuditedPropertiesHolder
- Returns:
- the holder's property audit overrides
-
getPersistentClass
public PersistentClass getPersistentClass()
-
getEntityName
public String getEntityName()
-
getAuditTable
public AuditTable getAuditTable()
-
setAuditTable
public void setAuditTable(AuditTable auditTable)
-
setDefaultAudited
public void setDefaultAudited(boolean defaultAudited)
-
isAudited
public boolean isAudited()
-
contains
public boolean contains(String propertyName)
- Specified by:
contains
in interfaceAuditedPropertiesHolder
- Returns:
- true if the holder contains the given audited property
-
getSyntheticProperties
public Iterable<PropertyAuditingData> getSyntheticProperties()
-
-