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:
java.io.Serializable
,AttributeMapping
,SingularAttributeInfo
,ToolingHintContainer
public class JaxbHbmVersionAttributeType extends JaxbHbmBaseVersionAttributeType implements java.io.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 java.util.List<JaxbHbmColumnType>
column
protected java.lang.Boolean
insert
protected java.lang.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 java.util.List<JaxbHbmColumnType>
getColumn()
Gets the value of the column property.java.lang.String
getType()
Gets the value of the type property.JaxbHbmUnsavedValueVersionEnum
getUnsavedValue()
Gets the value of the unsavedValue property.java.lang.Boolean
isInsert()
Gets the value of the insert property.void
setInsert(java.lang.Boolean value)
Sets the value of the insert property.void
setType(java.lang.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 java.util.List<JaxbHbmColumnType> column
-
insert
protected java.lang.Boolean insert
-
type
protected java.lang.String type
-
unsavedValue
protected JaxbHbmUnsavedValueVersionEnum unsavedValue
-
-
Method Detail
-
getColumn
public java.util.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 JAXB 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
-
isInsert
public java.lang.Boolean isInsert()
Gets the value of the insert property.- Returns:
- possible object is
Boolean
-
setInsert
public void setInsert(java.lang.Boolean value)
Sets the value of the insert property.- Parameters:
value
- allowed object isBoolean
-
getType
public java.lang.String getType()
Gets the value of the type property.- Returns:
- possible object is
String
-
setType
public void setType(java.lang.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
-
-