public class VersionValue extends 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(Object value)
Assume the transient instance is newly instantiated if
its version is null or equal to value
|
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue(Object currentValue) |
Boolean |
isUnsaved(Object version)
Does the given version belong to a new instance?
|
String |
toString() |
public static final VersionValue NULL
public static final VersionValue UNDEFINED
public static final VersionValue NEGATIVE
protected VersionValue()
public VersionValue(Object value)
value
- value to compare topublic Boolean isUnsaved(Object version) throws MappingException
version
- version to checkMappingException
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved