Package org.hibernate.envers.boot.model
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 ofIdentifier.
-
-
Constructor Summary
Constructors Constructor Description AbstractIdentifier(String propertyName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttribute(Attribute attribute)Add an attribute to the container.List<Attribute>getAttributes()Get the collection of property attributes.StringgetName()Get the property name.
-
-
-
Constructor Detail
-
AbstractIdentifier
public AbstractIdentifier(String propertyName)
-
-
Method Detail
-
addAttribute
public void addAttribute(Attribute attribute)
Description copied from interface:AttributeContainerAdd an attribute to the container.- Specified by:
addAttributein interfaceAttributeContainer- Parameters:
attribute- the attribute, should not benull
-
getName
public String getName()
Description copied from interface:IdentifierGet the property name.- Specified by:
getNamein interfaceIdentifier- Returns:
- the property name
-
getAttributes
public List<Attribute> getAttributes()
Description copied from interface:IdentifierGet the collection of property attributes.- Specified by:
getAttributesin interfaceIdentifier- Returns:
- unmodifiable list of attributes
-
-