Package org.hibernate.envers.boot.model
Class Column
- java.lang.Object
-
- org.hibernate.envers.boot.model.Selection<JaxbHbmColumnType>
-
- org.hibernate.envers.boot.model.Column
-
- All Implemented Interfaces:
Bindable<JaxbHbmColumnType>
,Cloneable<Column>
public class Column extends Selection<JaxbHbmColumnType> implements Cloneable<Column>
An implementation ofSelection
that represents a logical column.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hibernate.envers.boot.model.Selection
Selection.SelectionType
-
-
Constructor Summary
Constructors Constructor Description Column(String name)
Create a column with just a name.Column(String name, boolean quoted)
Create a column with just a name.Column(String name, Long length, Integer scale, Integer precision, String sqlType, String read, String write)
Creates a column without a non-quoted name.Column(String name, Long length, Integer scale, Integer precision, String sqlType, String read, String write, boolean quoted)
Creates a columnColumn(Column other)
Copy constructor that performs a deep-copy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxbHbmColumnType
build()
Builds the specified binded class type.Column
deepCopy()
Creates a new, deep-copied instance of this objectstatic Column
from(Selectable selectable)
Creates an Envers column mapping from an Hibernate ORM column mapping.String
getName()
void
setName(String name)
-
Methods inherited from class org.hibernate.envers.boot.model.Selection
getSelectionType
-
-
-
-
Constructor Detail
-
Column
public Column(String name)
Create a column with just a name.- Parameters:
name
- the name of the column
-
Column
public Column(String name, boolean quoted)
Create a column with just a name.- Parameters:
name
- the name of the columnquoted
- whether the name is to be quoted or not
-
Column
public Column(String name, Long length, Integer scale, Integer precision, String sqlType, String read, String write)
Creates a column without a non-quoted name.- Parameters:
name
- the name of the column, nevernull
length
- the length, may benull
scale
- the scale, may benull
precision
- the precision, may benull
sqlType
- the sql-type, may benull
read
- the custom read, may benull
write
- the custom write, may benull
-
Column
public Column(String name, Long length, Integer scale, Integer precision, String sqlType, String read, String write, boolean quoted)
Creates a column- Parameters:
name
- the name of the column, nevernull
length
- the length, may benull
scale
- the scale, may benull
precision
- the precision, may benull
sqlType
- the sql-type, may benull
read
- the custom read, may benull
write
- the custom write, may benull
quoted
- whether to quote the column name or not
-
Column
public Column(Column other)
Copy constructor that performs a deep-copy.- Parameters:
other
- the column to copy
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
deepCopy
public Column deepCopy()
Description copied from interface:Cloneable
Creates a new, deep-copied instance of this object
-
build
public JaxbHbmColumnType build()
Description copied from interface:Bindable
Builds the specified binded class type.- Specified by:
build
in interfaceBindable<JaxbHbmColumnType>
- Returns:
- instance of the bindable class type, never
null
-
from
public static Column from(Selectable selectable)
Creates an Envers column mapping from an Hibernate ORM column mapping.- Parameters:
selectable
- the ORM column mapping- Returns:
- the envers column mapping
-
-