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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected List<Serializable> protected Stringprotected GenerationTimingprotected Stringprotected Booleanprotected Booleanprotected Integerprotected Stringprotected Stringprotected Booleanprotected Booleanprotected Stringprotected Stringprotected JaxbHbmTypeSpecificationTypeprotected Stringprotected Booleanprotected Stringprotected BooleanFields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the access property.Gets the value of the columnAttribute property.Gets the value of the columnOrFormula property.Gets the value of the formulaAttribute property.Gets the value of the generated property.getIndex()Gets the value of the index property.Gets the value of the length property.getName()Gets the value of the name property.getNode()Gets the value of the node property.Gets the value of the precision property.getScale()Gets the value of the scale property.getType()Gets the value of the type property.Gets the value of the typeAttribute property.Gets the value of the uniqueKey property.isInsert()Gets the value of the insert property.booleanisLazy()Gets the value of the lazy property.Gets the value of the notNull property.booleanGets the value of the optimisticLock property.booleanisUnique()Gets the value of the unique property.isUpdate()Gets the value of the update property.voidSets the value of the access property.voidsetColumnAttribute(String value) Sets the value of the columnAttribute property.voidsetFormulaAttribute(String value) Sets the value of the formulaAttribute property.voidsetGenerated(GenerationTiming value) Sets the value of the generated property.voidSets the value of the index property.voidSets the value of the insert property.voidSets the value of the lazy property.voidSets the value of the length property.voidSets the value of the name property.voidSets the value of the node property.voidsetNotNull(Boolean value) Sets the value of the notNull property.voidsetOptimisticLock(Boolean value) Sets the value of the optimisticLock property.voidsetPrecision(String value) Sets the value of the precision property.voidSets the value of the scale property.voidSets the value of the type property.voidsetTypeAttribute(String value) Sets the value of the typeAttribute property.voidSets the value of the unique property.voidsetUniqueKey(String value) Sets the value of the uniqueKey property.voidSets the value of the update property.Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
getToolingHintsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
Field Details
-
columnOrFormula
-
type
-
access
-
columnAttribute
-
formulaAttribute
-
generated
-
index
-
insert
-
lazy
-
length
-
name
-
node
-
notNull
-
optimisticLock
-
precision
-
scale
-
typeAttribute
-
unique
-
uniqueKey
-
update
-
-
Constructor Details
-
JaxbHbmBasicAttributeType
public JaxbHbmBasicAttributeType()
-
-
Method Details
-
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 JAXB object. This is why there is not a
setmethod 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
StringJaxbHbmColumnType- Returns:
- The value of the columnOrFormula property.
-
getType
Gets the value of the type property.- Specified by:
getTypein interfaceSimpleValueTypeInfo- Specified by:
getTypein interfaceTypeContainer- Returns:
- possible object is
JaxbHbmTypeSpecificationType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isJaxbHbmTypeSpecificationType
-
getAccess
Gets the value of the access property.- Specified by:
getAccessin interfaceAttributeMapping- Returns:
- possible object is
String
-
setAccess
Sets the value of the access property.- Parameters:
value- allowed object isString
-
getColumnAttribute
Gets the value of the columnAttribute property.- Returns:
- possible object is
String
-
setColumnAttribute
Sets the value of the columnAttribute property.- Parameters:
value- allowed object isString
-
getFormulaAttribute
Gets the value of the formulaAttribute property.- Returns:
- possible object is
String
-
setFormulaAttribute
Sets the value of the formulaAttribute property.- Parameters:
value- allowed object isString
-
getGenerated
Gets the value of the generated property.- Returns:
- possible object is
String
-
setGenerated
Sets the value of the generated property.- Parameters:
value- allowed object isString
-
getIndex
Gets the value of the index property.- Returns:
- possible object is
String
-
setIndex
Sets the value of the index property.- Parameters:
value- allowed object isString
-
isInsert
Gets the value of the insert property.- Returns:
- possible object is
Boolean
-
setInsert
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
Sets the value of the lazy property.- Parameters:
value- allowed object isBoolean
-
getLength
Gets the value of the length property.- Returns:
- possible object is
Integer
-
setLength
Sets the value of the length property.- Parameters:
value- allowed object isInteger
-
getName
Gets the value of the name property.- Specified by:
getNamein interfaceAttributeMapping- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getNode
Gets the value of the node property.- Returns:
- possible object is
String
-
setNode
Sets the value of the node property.- Parameters:
value- allowed object isString
-
isNotNull
Gets the value of the notNull property.- Returns:
- possible object is
Boolean
-
setNotNull
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
Sets the value of the optimisticLock property.- Parameters:
value- allowed object isBoolean
-
getPrecision
Gets the value of the precision property.- Returns:
- possible object is
String
-
setPrecision
Sets the value of the precision property.- Parameters:
value- allowed object isString
-
getScale
Gets the value of the scale property.- Returns:
- possible object is
String
-
setScale
Sets the value of the scale property.- Parameters:
value- allowed object isString
-
getTypeAttribute
Gets the value of the typeAttribute property.- Specified by:
getTypeAttributein interfaceSimpleValueTypeInfo- Specified by:
getTypeAttributein interfaceTypeContainer- Returns:
- possible object is
String
-
setTypeAttribute
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
Sets the value of the unique property.- Parameters:
value- allowed object isBoolean
-
getUniqueKey
Gets the value of the uniqueKey property.- Returns:
- possible object is
String
-
setUniqueKey
Sets the value of the uniqueKey property.- Parameters:
value- allowed object isString
-
isUpdate
Gets the value of the update property.- Returns:
- possible object is
Boolean
-
setUpdate
Sets the value of the update property.- Parameters:
value- allowed object isBoolean
-