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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<JaxbHbmColumnType>
column
protected Boolean
insert
protected String
type
protected JaxbHbmUnsavedValueVersionEnum
unsavedValue
-
Fields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
access, columnAttribute, generated, name, node
-
Fields inherited from class org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
toolingHints
-
-
Constructor Summary
Constructors Constructor Description JaxbHbmVersionAttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JaxbHbmColumnType>
getColumn()
Gets the value of the column property.String
getType()
Gets the value of the type property.JaxbHbmUnsavedValueVersionEnum
getUnsavedValue()
Gets the value of the unsavedValue property.Boolean
isInsert()
Gets the value of the insert property.void
setInsert(Boolean value)
Sets the value of the insert property.void
setType(String value)
Sets the value of the type property.void
setUnsavedValue(JaxbHbmUnsavedValueVersionEnum value)
Sets 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, setNode
-
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.AttributeMapping
getAccess, getName
-
Methods inherited from interface org.hibernate.boot.jaxb.hbm.spi.ToolingHintContainer
getToolingHints
-
-
-
-
Field Detail
-
column
protected List<JaxbHbmColumnType> column
-
insert
protected Boolean insert
-
type
protected String type
-
unsavedValue
protected JaxbHbmUnsavedValueVersionEnum unsavedValue
-
-
Method Detail
-
getColumn
public List<JaxbHbmColumnType> 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
set
method 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
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
-
getType
public String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(String value)
Sets the value of the type property.- Parameters:
value
- allowed object isString
-
getUnsavedValue
public JaxbHbmUnsavedValueVersionEnum getUnsavedValue()
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueVersionEnum
-
setUnsavedValue
public void setUnsavedValue(JaxbHbmUnsavedValueVersionEnum value)
Sets the value of the unsavedValue property.- Parameters:
value
- allowed object isJaxbHbmUnsavedValueVersionEnum
-
-