public class VersionValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static VersionValue |
NEGATIVE
Assume the transient instance is newly instantiated if the version
is negative, otherwise assume it is a detached instance.
|
static VersionValue |
NULL
Assume the transient instance is newly instantiated if the version
is null, otherwise assume it is a detached instance.
|
static VersionValue |
UNDEFINED
Assume the transient instance is newly instantiated if the version
is null, otherwise defer to the identifier unsaved-value.
|
Modifier | Constructor and Description |
---|---|
protected |
VersionValue() |
|
VersionValue(java.lang.Object value)
Assume the transient instance is newly instantiated if
its version is null or equal to value
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultValue(java.lang.Object currentValue) |
java.lang.Boolean |
isUnsaved(java.lang.Object version)
Does the given version belong to a new instance?
|
java.lang.String |
toString() |
public static final VersionValue NULL
public static final VersionValue UNDEFINED
public static final VersionValue NEGATIVE
protected VersionValue()
public VersionValue(java.lang.Object value)
value
- value to compare topublic java.lang.Boolean isUnsaved(java.lang.Object version) throws MappingException
version
- version to checkMappingException
public java.lang.Object getDefaultValue(java.lang.Object currentValue)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013. All Rights Reserved.