Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmVersionAttributeType
java.lang.Object
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
org.hibernate.boot.jaxb.hbm.spi.JaxbHbmVersionAttributeType
- All Implemented Interfaces:
Serializable,AttributeMapping,SingularAttributeInfo,ToolingHintContainer
public class JaxbHbmVersionAttributeType
extends JaxbHbmBaseVersionAttributeType
implements Serializable, SingularAttributeInfo, ToolingHintContainer
Optimistic locking attribute based on an incrementing value.
Java class for VersionAttributeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="VersionAttributeType">
<complexContent>
<extension base="{http://www.hibernate.org/xsd/orm/hbm}BaseVersionAttributeType">
<sequence>
<element name="column" type="{http://www.hibernate.org/xsd/orm/hbm}ColumnType" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="insert" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" default="integer" />
<attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueVersionEnum" default="undefined" />
</extension>
</complexContent>
</complexType>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<JaxbHbmColumnType>protected Booleanprotected Stringprotected JaxbHbmUnsavedValueVersionEnumFields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
access, columnAttribute, generated, name, nodeFields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the column property.getType()Gets the value of the type property.Gets the value of the unsavedValue property.isInsert()Gets the value of the insert property.voidSets the value of the insert property.voidSets the value of the type property.voidSets the value of the unsavedValue property.Methods inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
getAccess, getColumnAttribute, getGenerated, getName, getNode, setAccess, setColumnAttribute, setGenerated, setName, setNodeMethods 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.AttributeMapping
getAccess, getNameMethods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
Field Details
-
column
-
insert
-
type
-
unsavedValue
-
-
Constructor Details
-
JaxbHbmVersionAttributeType
public JaxbHbmVersionAttributeType()
-
-
Method Details
-
getColumn
Gets the value of the column 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
setmethod for the column property.For example, to add a new item, do as follows:
getColumn().add(newItem);Objects of the following type(s) are allowed in the list
JaxbHbmColumnType- Returns:
- The value of the column property.
-
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
-
getType
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isString
-
getUnsavedValue
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueVersionEnum
-
setUnsavedValue
Sets the value of the unsavedValue property.- Parameters:
value- allowed object isJaxbHbmUnsavedValueVersionEnum
-