Class AbstractMetadataGenerator
java.lang.Object
org.hibernate.envers.configuration.internal.metadata.AbstractMetadataGenerator
- Direct Known Subclasses:
AbstractCollectionMetadataGenerator,AuditMetadataGenerator,ComponentMetadataGenerator,IdMetadataGenerator,ToOneRelationMetadataGenerator,ValueMetadataGenerator
Abstract base class for all metadata generator implementations.
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractMetadataGenerator(EnversMetadataBuildingContext metadataBuildingContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAuditedEntityConfiguration(String entityName, EntityConfiguration entityConfiguration) protected voidprotected voidprotected voidaddNotAuditedEntityConfiguration(String entityName, EntityConfiguration entityConfiguration) protected voidaddRevisionInfoRelationToIdentifier(Identifier identifier) protected voidaddRevisionTypeToAttributeContainer(AttributeContainer container, boolean key) protected EntityConfigurationgetAuditedEntityConfiguration(String entityName) protected StringgetCatalogName(String catalogFromAnnotation, Table table) protected EnversMetadataBuildingContextprotected EntityConfigurationgetNotAuditedEntityConfiguration(String entityName) protected IdMappingDatagetReferencedIdMappingData(String entityName, String referencedEntityName, PropertyAuditingData propertyAuditingData, boolean allowNotAuditedTarget) Reads the id mapping data of a referenced entity.protected StringgetSchemaName(String schemaFromAnnotation, Table table) protected booleanhasAuditedEntityConfiguration(String entityName) protected booleanhasNotAuditedEntityConfiguration(String entityName) protected voidthrowUnsupportedTypeException(Type type, String entityName, String propertyName)
-
Constructor Details
-
AbstractMetadataGenerator
-
-
Method Details
-
getMetadataBuildingContext
-
getAuditedEntityConfigurations
-
getNotAuditedEntityConfigurations
-
hasAuditedEntityConfiguration
-
hasNotAuditedEntityConfiguration
-
getAuditedEntityConfiguration
-
getNotAuditedEntityConfiguration
-
addAuditedEntityConfiguration
protected void addAuditedEntityConfiguration(String entityName, EntityConfiguration entityConfiguration) -
addNotAuditedEntityConfiguration
protected void addNotAuditedEntityConfiguration(String entityName, EntityConfiguration entityConfiguration) -
getSchemaName
-
getCatalogName
-
addRevisionInfoRelationToIdentifier
-
addAuditStrategyAdditionalColumnsToEntity
-
addAuditStrategyRevisionEndTimestampOnly
-
addRevisionTypeToAttributeContainer
-
getReferencedIdMappingData
protected IdMappingData getReferencedIdMappingData(String entityName, String referencedEntityName, PropertyAuditingData propertyAuditingData, boolean allowNotAuditedTarget) Reads the id mapping data of a referenced entity.- Parameters:
entityName- Name of the entity which is the source of the relation.referencedEntityName- Name of the entity which is the target of the relation.propertyAuditingData- Auditing data of the property that is the source of the relation.allowNotAuditedTarget- Are not-audited target entities allowed.- Returns:
- The id mapping data of the related entity.
- Throws:
EnversMappingException- If a relation from an audited to a non-audited entity is detected, which is not mapped usingRelationTargetAuditMode.NOT_AUDITED.
-
throwUnsupportedTypeException
-