Package org.hibernate.envers.boot.model
Class Key
- java.lang.Object
-
- org.hibernate.envers.boot.model.Key
-
- All Implemented Interfaces:
Bindable<JaxbHbmKeyType>
,Cloneable<Key>
,ColumnContainer
public class Key extends Object implements ColumnContainer, Bindable<JaxbHbmKeyType>, Cloneable<Key>
Contract for declaring a column name of a foreign key.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(Column column)
Add a column to the container.JaxbHbmKeyType
build()
Builds the specified binded class type.Key
deepCopy()
Creates a new, deep-copied instance of this objectList<Column>
getColumns()
Get all columns that are part of this property-
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
-
Key
public Key()
-
Key
public Key(Key key)
-
-
Method Detail
-
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 Key deepCopy()
Description copied from interface:Cloneable
Creates a new, deep-copied instance of this object
-
build
public JaxbHbmKeyType build()
Description copied from interface:Bindable
Builds the specified binded class type.- Specified by:
build
in interfaceBindable<JaxbHbmKeyType>
- Returns:
- instance of the bindable class type, never
null
-
-