Package org.hibernate.envers.boot.model
Class Column
java.lang.Object
org.hibernate.envers.boot.model.Selection<org.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnType>
org.hibernate.envers.boot.model.Column
- All Implemented Interfaces:
Bindable<org.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnType>,Cloneable<Column>
public class Column
extends Selection<org.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnType>
implements Cloneable<Column>
An implementation of
Selection that represents a logical column.-
Nested Class Summary
Nested classes/interfaces inherited from class org.hibernate.envers.boot.model.Selection
Selection.SelectionType -
Constructor Summary
ConstructorsConstructorDescriptionCreate a column with just a name.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 columnCopy constructor that performs a deep-copy. -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnTypebuild()Builds the specified binded class type.deepCopy()Creates a new, deep-copied instance of this objectstatic Columnfrom(org.hibernate.mapping.Selectable selectable) Creates an Envers column mapping from an Hibernate ORM column mapping.getName()voidMethods inherited from class org.hibernate.envers.boot.model.Selection
getSelectionType
-
Constructor Details
-
Column
Create a column with just a name.- Parameters:
name- the name of the column
-
Column
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, nevernulllength- the length, may benullscale- the scale, may benullprecision- the precision, may benullsqlType- the sql-type, may benullread- the custom read, may benullwrite- 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, nevernulllength- the length, may benullscale- the scale, may benullprecision- the precision, may benullsqlType- the sql-type, may benullread- the custom read, may benullwrite- the custom write, may benullquoted- whether to quote the column name or not
-
Column
Copy constructor that performs a deep-copy.- Parameters:
other- the column to copy
-
-
Method Details
-
getName
-
setName
-
deepCopy
Description copied from interface:CloneableCreates a new, deep-copied instance of this object -
build
public org.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnType build()Description copied from interface:BindableBuilds the specified binded class type. -
from
Creates an Envers column mapping from an Hibernate ORM column mapping.- Parameters:
selectable- the ORM column mapping- Returns:
- the envers column mapping
-