Package org.hibernate.boot.jaxb.hbm.spi
Class JaxbHbmTimestampAttributeType
- java.lang.Object
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmToolingHintContainer
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmBaseVersionAttributeType
-
- org.hibernate.boot.jaxb.hbm.spi.JaxbHbmTimestampAttributeType
-
- All Implemented Interfaces:
Serializable
,AttributeMapping
,SingularAttributeInfo
,ToolingHintContainer
public class JaxbHbmTimestampAttributeType extends JaxbHbmBaseVersionAttributeType implements Serializable, SingularAttributeInfo, ToolingHintContainer
Optimistic locking attribute based on a (last-updated) timestamp.Java class for TimestampAttributeType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="TimestampAttributeType"> <complexContent> <extension base="{http://www.hibernate.org/xsd/orm/hbm}BaseVersionAttributeType"> <attribute name="source" type="{http://www.hibernate.org/xsd/orm/hbm}TimestampSourceEnum" default="vm" /> <attribute name="unsaved-value" type="{http://www.hibernate.org/xsd/orm/hbm}UnsavedValueTimestampEnum" default="null" /> </extension> </complexContent> </complexType>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected JaxbHbmTimestampSourceEnum
source
protected JaxbHbmUnsavedValueTimestampEnum
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 JaxbHbmTimestampAttributeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JaxbHbmTimestampSourceEnum
getSource()
Gets the value of the source property.JaxbHbmUnsavedValueTimestampEnum
getUnsavedValue()
Gets the value of the unsavedValue property.void
setSource(JaxbHbmTimestampSourceEnum value)
Sets the value of the source property.void
setUnsavedValue(JaxbHbmUnsavedValueTimestampEnum 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
-
source
protected JaxbHbmTimestampSourceEnum source
-
unsavedValue
protected JaxbHbmUnsavedValueTimestampEnum unsavedValue
-
-
Method Detail
-
getSource
public JaxbHbmTimestampSourceEnum getSource()
Gets the value of the source property.- Returns:
- possible object is
JaxbHbmTimestampSourceEnum
-
setSource
public void setSource(JaxbHbmTimestampSourceEnum value)
Sets the value of the source property.- Parameters:
value
- allowed object isJaxbHbmTimestampSourceEnum
-
getUnsavedValue
public JaxbHbmUnsavedValueTimestampEnum getUnsavedValue()
Gets the value of the unsavedValue property.- Returns:
- possible object is
JaxbHbmUnsavedValueTimestampEnum
-
setUnsavedValue
public void setUnsavedValue(JaxbHbmUnsavedValueTimestampEnum value)
Sets the value of the unsavedValue property.- Parameters:
value
- allowed object isJaxbHbmUnsavedValueTimestampEnum
-
-