Class PropertyAuditingData
- java.lang.Object
-
- org.hibernate.envers.configuration.internal.metadata.reader.PropertyAuditingData
-
- Direct Known Subclasses:
ComponentAuditingData
public class PropertyAuditingData extends Object
The boot-time representation of an audited property.
-
-
Constructor Summary
Constructors Constructor Description PropertyAuditingData()
PropertyAuditingData(String name, String accessType, boolean forceInsertable)
Create a property with the defaultRelationTargetAuditMode
mode of AUDITED.PropertyAuditingData(String name, String accessType, RelationTargetAuditMode relationTargetAuditMode, RelationTargetNotFoundAction relationTargetNotFoundAction, String auditMappedBy, String positionMappedBy, boolean forceInsertable, boolean synthetic, Value value)
PropertyAuditingData(String name, String accessType, RelationTargetNotFoundAction relationTargetNotFoundAction, boolean forceInsertable, boolean synthetic, Value value)
Create a property with the defaultRelationTargetAuditMode
mode of AUDITED.
-
Method Summary
-
-
-
Constructor Detail
-
PropertyAuditingData
public PropertyAuditingData()
-
PropertyAuditingData
public PropertyAuditingData(String name, String accessType, boolean forceInsertable)
Create a property with the defaultRelationTargetAuditMode
mode of AUDITED.- Parameters:
name
- the property nameaccessType
- the access typeforceInsertable
- whether the property is forced insertable
-
PropertyAuditingData
public PropertyAuditingData(String name, String accessType, RelationTargetNotFoundAction relationTargetNotFoundAction, boolean forceInsertable, boolean synthetic, Value value)
Create a property with the defaultRelationTargetAuditMode
mode of AUDITED.- Parameters:
name
- the property nameaccessType
- the access typerelationTargetNotFoundAction
- the relation target not found actionforceInsertable
- whether the property is forced insertablesynthetic
- whether the property is a synthetic, non-logic column-based propertyvalue
- the mapping model's value
-
PropertyAuditingData
public PropertyAuditingData(String name, String accessType, RelationTargetAuditMode relationTargetAuditMode, RelationTargetNotFoundAction relationTargetNotFoundAction, String auditMappedBy, String positionMappedBy, boolean forceInsertable, boolean synthetic, Value value)
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getBeanName
public String getBeanName()
-
setBeanName
public void setBeanName(String beanName)
-
getMapKey
public String getMapKey()
-
setMapKey
public void setMapKey(String mapKey)
-
getMapKeyEnumType
public EnumType getMapKeyEnumType()
-
setMapKeyEnumType
public void setMapKeyEnumType(EnumType mapKeyEnumType)
-
getJoinTable
public AuditJoinTableData getJoinTable()
-
setJoinTable
public void setJoinTable(AuditJoinTableData joinTable)
-
getAccessType
public String getAccessType()
-
setAccessType
public void setAccessType(String accessType)
-
getAuditingOverrides
public List<AuditOverrideData> getAuditingOverrides()
-
getAuditMappedBy
public String getAuditMappedBy()
-
hasAuditedMappedBy
public boolean hasAuditedMappedBy()
-
setAuditMappedBy
public void setAuditMappedBy(String auditMappedBy)
-
getRelationMappedBy
public String getRelationMappedBy()
-
hasRelationMappedBy
public boolean hasRelationMappedBy()
-
setRelationMappedBy
public void setRelationMappedBy(String relationMappedBy)
-
getPositionMappedBy
public String getPositionMappedBy()
-
setPositionMappedBy
public void setPositionMappedBy(String positionMappedBy)
-
isForceInsertable
public boolean isForceInsertable()
-
setForceInsertable
public void setForceInsertable(boolean forceInsertable)
-
isUsingModifiedFlag
public boolean isUsingModifiedFlag()
-
setUsingModifiedFlag
public void setUsingModifiedFlag(boolean usingModifiedFlag)
-
getModifiedFlagName
public String getModifiedFlagName()
-
setModifiedFlagName
public void setModifiedFlagName(String modifiedFlagName)
-
isModifiedFlagNameExplicitlySpecified
public boolean isModifiedFlagNameExplicitlySpecified()
-
getExplicitModifiedFlagName
public String getExplicitModifiedFlagName()
-
setExplicitModifiedFlagName
public void setExplicitModifiedFlagName(String modifiedFlagName)
-
addAuditingOverride
public void addAuditingOverride(AuditOverride annotation)
-
addAuditingOverrides
public void addAuditingOverrides(AuditOverrides annotationOverrides)
-
getRelationTargetAuditMode
public RelationTargetAuditMode getRelationTargetAuditMode()
Get the relationTargetAuditMode property.- Returns:
- the relationTargetAuditMode property value
-
setRelationTargetAuditMode
public void setRelationTargetAuditMode(RelationTargetAuditMode relationTargetAuditMode)
Set the relationTargetAuditMode property value.- Parameters:
relationTargetAuditMode
- the relationTargetAuditMode to set
-
getRelationTargetNotFoundAction
public RelationTargetNotFoundAction getRelationTargetNotFoundAction()
-
setRelationTargetNotFoundAction
public void setRelationTargetNotFoundAction(RelationTargetNotFoundAction relationTargetNotFoundAction)
-
isSynthetic
public boolean isSynthetic()
-
getValue
public Value getValue()
-
setValue
public void setValue(Value value)
-
getPropertyType
public Type getPropertyType()
-
setPropertyType
public void setPropertyType(Type propertyType)
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
-
setPropertyAccessStrategy
public void setPropertyAccessStrategy(PropertyAccessStrategy propertyAccessStrategy)
-
getVirtualPropertyType
public Type getVirtualPropertyType()
-
setVirtualPropertyType
public void setVirtualPropertyType(Type virtualPropertyType)
-
getCollectionAuditTable
public CollectionAuditTable getCollectionAuditTable()
-
setCollectionAuditTable
public void setCollectionAuditTable(CollectionAuditTable collectionAuditTable)
-
resolvePropertyData
public PropertyData resolvePropertyData()
-
-