Class PropertyData

  • Direct Known Subclasses:
    RevisionTimestampData

    public class PropertyData
    extends Object
    The runtime representation of an audited property.
    Author:
    Adam Warski (adam at warski dot org), Chris Cranford
    • 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,
                            org.hibernate.type.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,
                            org.hibernate.type.Type propertyType,
                            org.hibernate.property.access.spi.PropertyAccessStrategy propertyAccessStrategy)
      • PropertyData

        public PropertyData​(String name,
                            String beanName,
                            String accessType,
                            boolean usingModifiedFlag,
                            String modifiedFlagName,
                            boolean synthetic,
                            org.hibernate.type.Type propertyType,
                            Class<?> virtualReturnClass,
                            org.hibernate.property.access.spi.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 org.hibernate.type.Type getType()
      • getVirtualReturnClass

        public Class<?> getVirtualReturnClass()
      • getPropertyAccessStrategy

        public org.hibernate.property.access.spi.PropertyAccessStrategy getPropertyAccessStrategy()
      • hashCode

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

        public static PropertyData forProperty​(String propertyName,
                                               org.hibernate.type.Type propertyType)