Package org.hibernate.envers.boot.model
Class ManyToOneAttribute
- java.lang.Object
-
- org.hibernate.envers.boot.model.ManyToOneAttribute
-
- All Implemented Interfaces:
Attribute,Bindable<Serializable>,Cloneable<Attribute>,ColumnContainer,Keyable,PluralAttribute
public class ManyToOneAttribute extends Object implements PluralAttribute, Keyable
Represents a plural attribute mapping of amany-to-oneorkey-many-to-one.
-
-
Constructor Summary
Constructors Constructor Description ManyToOneAttribute(String name, String type, boolean insertable, boolean updatable, boolean key, String explicitType)ManyToOneAttribute(ManyToOneAttribute other)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumn(Column column)Add a column to the container.Serializablebuild()Builds the specified binded class type.ManyToOneAttributedeepCopy()Creates a new, deep-copied instance of this objectList<Column>getColumns()Get all columns that are part of this propertyStringgetName()Get the name of the attributeStringgetOnDelete()booleanisKey()Get whether the attribute is already participatig in a key.voidsetForeignKey(String foreignKey)voidsetKey(boolean key)Set whether this attribute should or shouldn't participate as a key attribute.voidsetName(String name)Set the name of the attributevoidsetOnDelete(String onDelete)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.envers.boot.model.ColumnContainer
addColumnsFromValue
-
-
-
-
Constructor Detail
-
ManyToOneAttribute
public ManyToOneAttribute(String name, String type, boolean insertable, boolean updatable, boolean key, String explicitType)
-
ManyToOneAttribute
public ManyToOneAttribute(ManyToOneAttribute other)
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:AttributeGet the name of the attribute
-
setName
public void setName(String name)
Description copied from interface:AttributeSet the name of the attribute
-
setKey
public void setKey(boolean key)
Description copied from interface:KeyableSet whether this attribute should or shouldn't participate as a key attribute.
-
isKey
public boolean isKey()
Description copied from interface:KeyableGet whether the attribute is already participatig in a key.
-
getOnDelete
public String getOnDelete()
-
setOnDelete
public void setOnDelete(String onDelete)
-
getColumns
public List<Column> getColumns()
Description copied from interface:ColumnContainerGet all columns that are part of this property- Specified by:
getColumnsin interfaceColumnContainer- Returns:
- unmodifiable list of property columns
-
addColumn
public void addColumn(Column column)
Description copied from interface:ColumnContainerAdd a column to the container.- Specified by:
addColumnin interfaceColumnContainer- Parameters:
column- the column, must not benull
-
setForeignKey
public void setForeignKey(String foreignKey)
-
deepCopy
public ManyToOneAttribute deepCopy()
Description copied from interface:CloneableCreates a new, deep-copied instance of this object
-
build
public Serializable build()
Description copied from interface:BindableBuilds the specified binded class type.- Specified by:
buildin interfaceBindable<Serializable>- Returns:
- instance of the bindable class type, never
null
-
-