Package org.hibernate.envers.boot.model
Class SetAttribute
- java.lang.Object
-
- org.hibernate.envers.boot.model.SetAttribute
-
- All Implemented Interfaces:
Attribute
,Bindable<Serializable>
,Cloneable<Attribute>
,ColumnContainer
,PluralAttribute
public class SetAttribute extends Object implements PluralAttribute
A plural attribute that represents aset
. This attribute binds Hibernate's persistence model to aJaxbHbmSetType
mapping that will be contributed by Envers back to Hibernate for the audit entity mappings. This does not bind all JAXB model attributes, only those which are applicable to Envers's metamodel.
-
-
Constructor Summary
Constructors Constructor Description SetAttribute(String name, String tableName, String schemaName, String catalogName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(Column column)
Add a column to the container.Serializable
build()
Builds the specified binded class type.Attribute
deepCopy()
Creates a new, deep-copied instance of this objectList<Column>
getColumns()
Get all columns that are part of this propertyString
getName()
Get the name of the attributevoid
setCascade(String cascade)
void
setColumnName(String columnName)
void
setElementType(String elementType)
void
setFetch(String fetch)
void
setKeyColumn(String keyColumn)
void
setLazy(String lazy)
void
setName(String name)
Set the name of the attribute-
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
-
-
-
-
Method Detail
-
setCascade
public void setCascade(String cascade)
-
setFetch
public void setFetch(String fetch)
-
setKeyColumn
public void setKeyColumn(String keyColumn)
-
setElementType
public void setElementType(String elementType)
-
setLazy
public void setLazy(String lazy)
-
setColumnName
public void setColumnName(String columnName)
-
getName
public String getName()
Description copied from interface:Attribute
Get the name of the attribute
-
setName
public void setName(String name)
Description copied from interface:Attribute
Set the name of the attribute
-
getColumns
public List<Column> getColumns()
Description copied from interface:ColumnContainer
Get all columns that are part of this property- Specified by:
getColumns
in interfaceColumnContainer
- Returns:
- unmodifiable list of property columns
-
addColumn
public void addColumn(Column column)
Description copied from interface:ColumnContainer
Add a column to the container.- Specified by:
addColumn
in interfaceColumnContainer
- Parameters:
column
- the column, must not benull
-
deepCopy
public Attribute deepCopy()
Description copied from interface:Cloneable
Creates a new, deep-copied instance of this object
-
build
public Serializable build()
Description copied from interface:Bindable
Builds the specified binded class type.- Specified by:
build
in interfaceBindable<Serializable>
- Returns:
- instance of the bindable class type, never
null
-
-