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 void
addAttribute(Attribute attribute)
Add an attribute to the container.List<Attribute>
getAttributes()
Get the collection of property attributes.String
getName()
Get the property name.
-
-
-
Constructor Detail
-
AbstractIdentifier
public AbstractIdentifier(String propertyName)
-
-
Method Detail
-
addAttribute
public void addAttribute(Attribute attribute)
Description copied from interface:AttributeContainer
Add an attribute to the container.- Specified by:
addAttribute
in interfaceAttributeContainer
- Parameters:
attribute
- the attribute, should not benull
-
getName
public String getName()
Description copied from interface:Identifier
Get the property name.- Specified by:
getName
in interfaceIdentifier
- Returns:
- the property name
-
getAttributes
public List<Attribute> getAttributes()
Description copied from interface:Identifier
Get the collection of property attributes.- Specified by:
getAttributes
in interfaceIdentifier
- Returns:
- unmodifiable list of attributes
-
-