public class IdentifierValue extends Object
Modifier and Type | Field and Description |
---|---|
static IdentifierValue |
ANY
Always assume the transient instance is newly instantiated
|
static IdentifierValue |
NONE
Never assume the transient instance is newly instantiated
|
static IdentifierValue |
NULL
Assume the transient instance is newly instantiated if the identifier
is null.
|
static IdentifierValue |
UNDEFINED
Assume nothing.
|
Modifier | Constructor and Description |
---|---|
protected |
IdentifierValue() |
|
IdentifierValue(Serializable value)
Assume the transient instance is newly instantiated if
its identifier is null or equal to value
|
Modifier and Type | Method and Description |
---|---|
Serializable |
getDefaultValue(Serializable currentValue) |
Boolean |
isUnsaved(Serializable id)
Does the given identifier belong to a new instance?
|
String |
toString() |
public static final IdentifierValue ANY
public static final IdentifierValue NONE
public static final IdentifierValue NULL
public static final IdentifierValue UNDEFINED
protected IdentifierValue()
public IdentifierValue(Serializable value)
public Boolean isUnsaved(Serializable id)
public Serializable getDefaultValue(Serializable currentValue)
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved