Class EntityConfiguration
- java.lang.Object
-
- org.hibernate.envers.internal.entities.EntityConfiguration
-
public class EntityConfiguration extends Object
Runtime representation of an entity that may or may not be audited.
-
-
Constructor Summary
Constructors Constructor Description EntityConfiguration(String versionsEntityName, String entityClassName, IdMappingData idMappingData, ExtendedPropertyMapper propertyMapper, String parentEntityName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToManyComponent(String propertyName, String auditMiddleEntityName, MiddleIdData middleIdData)
void
addToManyMiddleNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, String auditMiddleEntityName)
void
addToManyMiddleRelation(String fromPropertyName, String toEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, String auditMiddleEntityName)
void
addToManyNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, IdMapper idMapper, PropertyMapper fakeBidirectionalRelationMapper, PropertyMapper fakeBidirectionalRelationIndexMapper, boolean indexed)
void
addToOneComponent(String propertyName, ComponentAuditingData auditingData)
void
addToOneNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, IdMapper idMapper, boolean ignoreNotFound)
void
addToOneRelation(String fromPropertyName, String toEntityName, IdMapper idMapper, boolean insertable, boolean ignoreNotFound)
ComponentDescription
getComponentDescription(String propertyName)
String
getEntityClassName()
IdMapper
getIdMapper()
IdMappingData
getIdMappingData()
String
getParentEntityName()
ExtendedPropertyMapper
getPropertyMapper()
RelationDescription
getRelationDescription(String propertyName)
boolean
isRelation(String propertyName)
-
-
-
Constructor Detail
-
EntityConfiguration
public EntityConfiguration(String versionsEntityName, String entityClassName, IdMappingData idMappingData, ExtendedPropertyMapper propertyMapper, String parentEntityName)
-
-
Method Detail
-
addToOneRelation
public void addToOneRelation(String fromPropertyName, String toEntityName, IdMapper idMapper, boolean insertable, boolean ignoreNotFound)
-
addToOneNotOwningRelation
public void addToOneNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, IdMapper idMapper, boolean ignoreNotFound)
-
addToManyNotOwningRelation
public void addToManyNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, IdMapper idMapper, PropertyMapper fakeBidirectionalRelationMapper, PropertyMapper fakeBidirectionalRelationIndexMapper, boolean indexed)
-
addToManyMiddleRelation
public void addToManyMiddleRelation(String fromPropertyName, String toEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, String auditMiddleEntityName)
-
addToManyMiddleNotOwningRelation
public void addToManyMiddleNotOwningRelation(String fromPropertyName, String mappedByPropertyName, String toEntityName, MiddleIdData referencingIdData, MiddleIdData referencedIdData, String auditMiddleEntityName)
-
addToManyComponent
public void addToManyComponent(String propertyName, String auditMiddleEntityName, MiddleIdData middleIdData)
-
addToOneComponent
public void addToOneComponent(String propertyName, ComponentAuditingData auditingData)
-
isRelation
public boolean isRelation(String propertyName)
-
getRelationDescription
public RelationDescription getRelationDescription(String propertyName)
-
getComponentDescription
public ComponentDescription getComponentDescription(String propertyName)
-
getIdMappingData
public IdMappingData getIdMappingData()
-
getIdMapper
public IdMapper getIdMapper()
-
getPropertyMapper
public ExtendedPropertyMapper getPropertyMapper()
-
getParentEntityName
public String getParentEntityName()
-
getEntityClassName
public String getEntityClassName()
- Returns:
- the className for the configured entity
-
-