Class PropertyData
- java.lang.Object
-
- org.hibernate.envers.internal.entities.PropertyData
-
- Direct Known Subclasses:
RevisionTimestampData
public class PropertyData extends Object
The runtime representation of an audited property.
-
-
Constructor Summary
Constructors Constructor Description PropertyData(String name, String beanName, String accessType)
PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic)
PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic, Type propertyType, Class<?> virtualReturnClass, PropertyAccessStrategy propertyAccessStrategy)
PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic, Type propertyType, PropertyAccessStrategy propertyAccessStrategy)
PropertyData(String name, String beanName, String accessType, Type propertyType)
PropertyData(String newName, PropertyData propertyData)
Copies the given property data, except the name.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static PropertyData
forProperty(String propertyName, Type propertyType)
String
getAccessType()
String
getBeanName()
String
getModifiedFlagPropertyName()
String
getName()
PropertyAccessStrategy
getPropertyAccessStrategy()
Type
getType()
Class<?>
getVirtualReturnClass()
int
hashCode()
boolean
isSynthetic()
boolean
isUsingModifiedFlag()
-
-
-
Constructor Detail
-
PropertyData
public PropertyData(String newName, PropertyData propertyData)
Copies the given property data, except the name.- Parameters:
newName
- New name.propertyData
- Property data to copy the rest of properties from.
-
PropertyData
public PropertyData(String name, String beanName, String accessType)
- Parameters:
name
- Name of the property.beanName
- Name of the property in the bean.accessType
- Accessor type for this property.
-
PropertyData
public PropertyData(String name, String beanName, String accessType, Type propertyType)
-
PropertyData
public PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic)
- Parameters:
name
- Name of the property.beanName
- Name of the property in the bean.accessType
- Accessor type for this property.usingModifiedFlag
- Defines if field changes should be tracked
-
PropertyData
public PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic, Type propertyType, PropertyAccessStrategy propertyAccessStrategy)
-
-
Method Detail
-
getName
public String getName()
-
getBeanName
public String getBeanName()
-
getAccessType
public String getAccessType()
-
isUsingModifiedFlag
public boolean isUsingModifiedFlag()
-
getModifiedFlagPropertyName
public String getModifiedFlagPropertyName()
-
isSynthetic
public boolean isSynthetic()
-
getType
public Type getType()
-
getVirtualReturnClass
public Class<?> getVirtualReturnClass()
-
getPropertyAccessStrategy
public PropertyAccessStrategy getPropertyAccessStrategy()
-
forProperty
public static PropertyData forProperty(String propertyName, Type propertyType)
-
-