Class AbstractIdentifier

java.lang.Object
org.hibernate.envers.boot.model.AbstractIdentifier
All Implemented Interfaces:
AttributeContainer, Bindable<Serializable>, Identifier
Direct Known Subclasses:
CompositeIdentifier, SimpleIdentifier

public abstract class AbstractIdentifier extends Object implements Identifier
Base abstract implementation of Identifier.
  • Constructor Details

    • AbstractIdentifier

      public AbstractIdentifier(String propertyName)
  • Method Details

    • addAttribute

      public void addAttribute(Attribute attribute)
      Description copied from interface: AttributeContainer
      Add an attribute to the container.
      Specified by:
      addAttribute in interface AttributeContainer
      Parameters:
      attribute - the attribute, should not be null
    • getName

      public String getName()
      Description copied from interface: Identifier
      Get the property name.
      Specified by:
      getName in interface Identifier
      Returns:
      the property name
    • getAttributes

      public List<Attribute> getAttributes()
      Description copied from interface: Identifier
      Get the collection of property attributes.
      Specified by:
      getAttributes in interface Identifier
      Returns:
      unmodifiable list of attributes