Class ExtendedPropertyAccessor

  • All Implemented Interfaces:
    org.hibernate.property.access.spi.PropertyAccessStrategy

    public final class ExtendedPropertyAccessor
    extends Object
    implements org.hibernate.property.access.spi.PropertyAccessStrategy
    This class is used to interface with Hibernate for extended properties. We need specialized getter and setter methods since there are no regulare get and set methods for the extended properties. Ie. we have to call getExtended("name") instead of getName().

    During startup Hibernate creates a pair of Getter and Setter objects for each extended property of an Extendable item. These objects are then used to access the extended properties for all items via the GetterSetter.get and GetterSetter.set methods.

    Version:
    2.0
    Author:
    Nicklas, Samuel
    See Also:
    ExtendableData, ExtendedProperty, ExtendedProperties
    • Constructor Detail

      • ExtendedPropertyAccessor

        public ExtendedPropertyAccessor()
        Create a new ExtendedPropertyAccessor object.
    • Method Detail

      • buildPropertyAccess

        public org.hibernate.property.access.spi.PropertyAccess buildPropertyAccess​(Class clazz,
                                                                                    String property)
        Specified by:
        buildPropertyAccess in interface org.hibernate.property.access.spi.PropertyAccessStrategy