Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmBasicAttributeType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBasicAttributeType
-
- All Implemented Interfaces:
Serializable
,AttributeMapping
,SimpleValueTypeInfo
,SingularAttributeInfo
,ToolingHintContainer
,TypeContainer
public class JaxbHbmBasicAttributeType extends JaxbHbmToolingHintContainer implements Serializable, SimpleValueTypeInfo, SingularAttributeInfo, ToolingHintContainer, TypeContainer
Java class for BasicAttributeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="BasicAttributeType"> <complexContent> <extension base="{http://www.hibernate.org/xsd/orm/hbm}ToolingHintContainer"> <sequence> <choice maxOccurs="unbounded" minOccurs="0"> <group ref="{http://www.hibernate.org/xsd/orm/hbm}column-or-formula"/> </choice> <element name="type" type="{http://www.hibernate.org/xsd/orm/hbm}TypeSpecificationType" minOccurs="0"/> </sequence> <attribute name="access" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="column" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="formula" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="generated" type="{http://www.hibernate.org/xsd/orm/hbm}GenerationTimingEnum" default="never" /> <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="lazy" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <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="node" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="not-null" type="{http://www.w3.org/2001/XMLSchema}boolean" /> <attribute name="optimistic-lock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="scale" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="unique" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> <attribute name="unique-key" type="{http://www.w3.org/2001/XMLSchema}string" /> <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}boolean" /> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
access
protected String
columnAttribute
protected List<Serializable>
columnOrFormula
protected String
formulaAttribute
protected GenerationTiming
generated
protected String
index
protected Boolean
insert
protected Boolean
lazy
protected Integer
length
protected String
name
protected String
node
protected Boolean
notNull
protected Boolean
optimisticLock
protected String
precision
protected String
scale
protected JaxbHbmTypeSpecificationType
type
protected String
typeAttribute
protected Boolean
unique
protected String
uniqueKey
protected Boolean
update
-
Fields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints
-
-
Constructor Summary
Constructors Constructor Description JaxbHbmBasicAttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccess()
Gets the value of the access property.String
getColumnAttribute()
Gets the value of the columnAttribute property.List<Serializable>
getColumnOrFormula()
Gets the value of the columnOrFormula property.String
getFormulaAttribute()
Gets the value of the formulaAttribute property.GenerationTiming
getGenerated()
Gets the value of the generated property.String
getIndex()
Gets the value of the index property.Integer
getLength()
Gets the value of the length property.String
getName()
Gets the value of the name property.String
getNode()
Gets the value of the node property.String
getPrecision()
Gets the value of the precision property.String
getScale()
Gets the value of the scale property.JaxbHbmTypeSpecificationType
getType()
Gets the value of the type property.String
getTypeAttribute()
Gets the value of the typeAttribute property.String
getUniqueKey()
Gets the value of the uniqueKey property.Boolean
isInsert()
Gets the value of the insert property.boolean
isLazy()
Gets the value of the lazy property.Boolean
isNotNull()
Gets the value of the notNull property.boolean
isOptimisticLock()
Gets the value of the optimisticLock property.boolean
isUnique()
Gets the value of the unique property.Boolean
isUpdate()
Gets the value of the update property.void
setAccess(String value)
Sets the value of the access property.void
setColumnAttribute(String value)
Sets the value of the columnAttribute property.void
setFormulaAttribute(String value)
Sets the value of the formulaAttribute property.void
setGenerated(GenerationTiming value)
Sets the value of the generated property.void
setIndex(String value)
Sets the value of the index property.void
setInsert(Boolean value)
Sets the value of the insert property.void
setLazy(Boolean value)
Sets the value of the lazy property.void
setLength(Integer value)
Sets the value of the length property.void
setName(String value)
Sets the value of the name property.void
setNode(String value)
Sets the value of the node property.void
setNotNull(Boolean value)
Sets the value of the notNull property.void
setOptimisticLock(Boolean value)
Sets the value of the optimisticLock property.void
setPrecision(String value)
Sets the value of the precision property.void
setScale(String value)
Sets the value of the scale property.void
setType(JaxbHbmTypeSpecificationType value)
Sets the value of the type property.void
setTypeAttribute(String value)
Sets the value of the typeAttribute property.void
setUnique(Boolean value)
Sets the value of the unique property.void
setUniqueKey(String value)
Sets the value of the uniqueKey property.void
setUpdate(Boolean value)
Sets the value of the update property.-
Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
-
-
-
Field Detail
-
columnOrFormula
protected List<Serializable> columnOrFormula
-
type
protected JaxbHbmTypeSpecificationType type
-
access
protected String access
-
columnAttribute
protected String columnAttribute
-
formulaAttribute
protected String formulaAttribute
-
generated
protected GenerationTiming generated
-
index
protected String index
-
insert
protected Boolean insert
-
lazy
protected Boolean lazy
-
length
protected Integer length
-
name
protected String name
-
node
protected String node
-
notNull
protected Boolean notNull
-
optimisticLock
protected Boolean optimisticLock
-
precision
protected String precision
-
scale
protected String scale
-
typeAttribute
protected String typeAttribute
-
unique
protected Boolean unique
-
uniqueKey
protected String uniqueKey
-
update
protected Boolean update
-
-
Method Detail
-
getColumnOrFormula
public List<Serializable> getColumnOrFormula()
Gets the value of the columnOrFormula property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a
set
method for the columnOrFormula property.For example, to add a new item, do as follows:
getColumnOrFormula().add(newItem);
Objects of the following type(s) are allowed in the list
String
JaxbHbmColumnType
- Returns:
- The value of the columnOrFormula property.
-
getType
public JaxbHbmTypeSpecificationType getType()
Gets the value of the type property.- Specified by:
getType
in interfaceSimpleValueTypeInfo
- Specified by:
getType
in interfaceTypeContainer
- Returns:
- possible object is
JaxbHbmTypeSpecificationType
-
setType
public void setType(JaxbHbmTypeSpecificationType value)
Sets the value of the type property.- Parameters:
value
- allowed object isJaxbHbmTypeSpecificationType
-
getAccess
public String getAccess()
Gets the value of the access property.- Specified by:
getAccess
in interfaceAttributeMapping
- Returns:
- possible object is
String
-
setAccess
public void setAccess(String value)
Sets the value of the access property.- Parameters:
value
- allowed object isString
-
getColumnAttribute
public String getColumnAttribute()
Gets the value of the columnAttribute property.- Returns:
- possible object is
String
-
setColumnAttribute
public void setColumnAttribute(String value)
Sets the value of the columnAttribute property.- Parameters:
value
- allowed object isString
-
getFormulaAttribute
public String getFormulaAttribute()
Gets the value of the formulaAttribute property.- Returns:
- possible object is
String
-
setFormulaAttribute
public void setFormulaAttribute(String value)
Sets the value of the formulaAttribute property.- Parameters:
value
- allowed object isString
-
getGenerated
public GenerationTiming getGenerated()
Gets the value of the generated property.- Returns:
- possible object is
String
-
setGenerated
public void setGenerated(GenerationTiming value)
Sets the value of the generated 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
-
isInsert
public Boolean isInsert()
Gets the value of the insert property.- Returns:
- possible object is
Boolean
-
setInsert
public void setInsert(Boolean value)
Sets the value of the insert property.- Parameters:
value
- allowed object isBoolean
-
isLazy
public boolean isLazy()
Gets the value of the lazy property.- Returns:
- possible object is
Boolean
-
setLazy
public void setLazy(Boolean value)
Sets the value of the lazy property.- Parameters:
value
- allowed object isBoolean
-
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.- Specified by:
getName
in interfaceAttributeMapping
- Returns:
- possible object is
String
-
setName
public void setName(String value)
Sets the value of the name property.- Parameters:
value
- allowed object isString
-
getNode
public String getNode()
Gets the value of the node property.- Returns:
- possible object is
String
-
setNode
public void setNode(String value)
Sets the value of the node 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
-
isOptimisticLock
public boolean isOptimisticLock()
Gets the value of the optimisticLock property.- Returns:
- possible object is
Boolean
-
setOptimisticLock
public void setOptimisticLock(Boolean value)
Sets the value of the optimisticLock property.- Parameters:
value
- allowed object isBoolean
-
getPrecision
public String getPrecision()
Gets the value of the precision property.- Returns:
- possible object is
String
-
setPrecision
public void setPrecision(String value)
Sets the value of the precision property.- Parameters:
value
- allowed object isString
-
getScale
public String getScale()
Gets the value of the scale property.- Returns:
- possible object is
String
-
setScale
public void setScale(String value)
Sets the value of the scale property.- Parameters:
value
- allowed object isString
-
getTypeAttribute
public String getTypeAttribute()
Gets the value of the typeAttribute property.- Specified by:
getTypeAttribute
in interfaceSimpleValueTypeInfo
- Specified by:
getTypeAttribute
in interfaceTypeContainer
- Returns:
- possible object is
String
-
setTypeAttribute
public void setTypeAttribute(String value)
Sets the value of the typeAttribute 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
-
isUpdate
public Boolean isUpdate()
Gets the value of the update property.- Returns:
- possible object is
Boolean
-
-