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 Details

    • 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)
    • PropertyData

      public PropertyData(String name, String beanName, String accessType, boolean usingModifiedFlag, String modifiedFlagName, boolean synthetic, Type propertyType, Class<?> virtualReturnClass, PropertyAccessStrategy propertyAccessStrategy)
  • Method Details

    • 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()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • forProperty

      public static PropertyData forProperty(String propertyName, Type propertyType)