Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmColumnType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmColumnType
-
- All Implemented Interfaces:
Serializable
public class JaxbHbmColumnType extends Object implements Serializable
The column element is an alternative to column attributes and required for mapping associations to classes with composite ids.Java class for ColumnType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="ColumnType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> </sequence> <attribute name="check" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="length" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="not-null" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="read" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}int" /> <attribute name="sql-type" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="unique-key" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="write" type="{http://www.w3.org/2001/XMLSchema}string" /> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String_defaultprotected Stringcheckprotected Stringcommentprotected Stringindexprotected Integerlengthprotected Stringnameprotected BooleannotNullprotected Integerprecisionprotected Stringreadprotected Integerscaleprotected StringsqlTypeprotected Booleanuniqueprotected StringuniqueKeyprotected Stringwrite
-
Constructor Summary
Constructors Constructor Description JaxbHbmColumnType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCheck()Gets the value of the check property.StringgetComment()Gets the value of the comment property.StringgetDefault()Gets the value of the default property.StringgetIndex()Gets the value of the index property.IntegergetLength()Gets the value of the length property.StringgetName()Gets the value of the name property.IntegergetPrecision()Gets the value of the precision property.StringgetRead()Gets the value of the read property.IntegergetScale()Gets the value of the scale property.StringgetSqlType()Gets the value of the sqlType property.StringgetUniqueKey()Gets the value of the uniqueKey property.StringgetWrite()Gets the value of the write property.BooleanisNotNull()Gets the value of the notNull property.BooleanisUnique()Gets the value of the unique property.voidsetCheck(String value)Sets the value of the check property.voidsetComment(String value)Sets the value of the comment property.voidsetDefault(String value)Sets the value of the default property.voidsetIndex(String value)Sets the value of the index property.voidsetLength(Integer value)Sets the value of the length property.voidsetName(String value)Sets the value of the name property.voidsetNotNull(Boolean value)Sets the value of the notNull property.voidsetPrecision(Integer value)Sets the value of the precision property.voidsetRead(String value)Sets the value of the read property.voidsetScale(Integer value)Sets the value of the scale property.voidsetSqlType(String value)Sets the value of the sqlType property.voidsetUnique(Boolean value)Sets the value of the unique property.voidsetUniqueKey(String value)Sets the value of the uniqueKey property.voidsetWrite(String value)Sets the value of the write property.
-
-
-
Field Detail
-
comment
protected String comment
-
check
protected String check
-
_default
protected String _default
-
index
protected String index
-
length
protected Integer length
-
name
protected String name
-
notNull
protected Boolean notNull
-
precision
protected Integer precision
-
read
protected String read
-
scale
protected Integer scale
-
sqlType
protected String sqlType
-
unique
protected Boolean unique
-
uniqueKey
protected String uniqueKey
-
write
protected String write
-
-
Method Detail
-
getComment
public String getComment()
Gets the value of the comment property.- Returns:
- possible object is
String
-
setComment
public void setComment(String value)
Sets the value of the comment property.- Parameters:
value- allowed object isString
-
getCheck
public String getCheck()
Gets the value of the check property.- Returns:
- possible object is
String
-
setCheck
public void setCheck(String value)
Sets the value of the check property.- Parameters:
value- allowed object isString
-
getDefault
public String getDefault()
Gets the value of the default property.- Returns:
- possible object is
String
-
setDefault
public void setDefault(String value)
Sets the value of the default property.- Parameters:
value- allowed object isString
-
getIndex
public String getIndex()
Gets the value of the index property.- Returns:
- possible object is
String
-
setIndex
public void setIndex(String value)
Sets the value of the index property.- Parameters:
value- allowed object isString
-
getLength
public Integer getLength()
Gets the value of the length property.- Returns:
- possible object is
Integer
-
setLength
public void setLength(Integer value)
Sets the value of the length property.- Parameters:
value- allowed object isInteger
-
getName
public String getName()
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value- allowed object isString
-
isNotNull
public Boolean isNotNull()
Gets the value of the notNull property.- Returns:
- possible object is
Boolean
-
setNotNull
public void setNotNull(Boolean value)
Sets the value of the notNull property.- Parameters:
value- allowed object isBoolean
-
getPrecision
public Integer getPrecision()
Gets the value of the precision property.- Returns:
- possible object is
Integer
-
setPrecision
public void setPrecision(Integer value)
Sets the value of the precision property.- Parameters:
value- allowed object isInteger
-
getRead
public String getRead()
Gets the value of the read property.- Returns:
- possible object is
String
-
setRead
public void setRead(String value)
Sets the value of the read property.- Parameters:
value- allowed object isString
-
getScale
public Integer getScale()
Gets the value of the scale property.- Returns:
- possible object is
Integer
-
setScale
public void setScale(Integer value)
Sets the value of the scale property.- Parameters:
value- allowed object isInteger
-
getSqlType
public String getSqlType()
Gets the value of the sqlType property.- Returns:
- possible object is
String
-
setSqlType
public void setSqlType(String value)
Sets the value of the sqlType property.- Parameters:
value- allowed object isString
-
isUnique
public Boolean isUnique()
Gets the value of the unique property.- Returns:
- possible object is
Boolean
-
setUnique
public void setUnique(Boolean value)
Sets the value of the unique property.- Parameters:
value- allowed object isBoolean
-
getUniqueKey
public String getUniqueKey()
Gets the value of the uniqueKey property.- Returns:
- possible object is
String
-
setUniqueKey
public void setUniqueKey(String value)
Sets the value of the uniqueKey property.- Parameters:
value- allowed object isString
-
getWrite
public String getWrite()
Gets the value of the write property.- Returns:
- possible object is
String
-
-