unsaved-value attribute in
the mapping file.
| Modifier and Type | Field and Description |
|---|---|
| public static final IdentifierValue | ANY
Always assume the transient instance is newly instantiated |
| private static final Logger | |
| public static final IdentifierValue | NONE
Never assume the transient instance is newly instantiated |
| public static final IdentifierValue | NULL
Assume the transient instance is newly instantiated if the identifier is null. |
| public static final IdentifierValue | UNDEFINED
Assume nothing. |
| private final @Nullable Object |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | IdentifierValue(Object value)
Assume the transient instance is newly instantiated if
its identifier is null or equal to |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Object | |
| public @Nullable Boolean | |
| public String |
| ANY | back to summary |
|---|---|
| public static final IdentifierValue ANY Always assume the transient instance is newly instantiated | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NONE | back to summary |
|---|---|
| public static final IdentifierValue NONE Never assume the transient instance is newly instantiated | |
| NULL | back to summary |
|---|---|
| public static final IdentifierValue NULL Assume the transient instance is newly instantiated if the identifier is null. | |
| UNDEFINED | back to summary |
|---|---|
| public static final IdentifierValue UNDEFINED Assume nothing. | |
| value | back to summary |
|---|---|
| private final @Nullable Object value | |
| IdentifierValue | back to summary |
|---|---|
| protected IdentifierValue() | |
| IdentifierValue | back to summary |
|---|---|
| public IdentifierValue(Object value) Assume the transient instance is newly instantiated if
its identifier is null or equal to | |
| getDefaultValue | back to summary |
|---|---|
public @Nullable Object getDefaultValue(@Nullable Object currentValue)
| |
| isUnsaved | back to summary |
|---|---|
| public @Nullable Boolean isUnsaved(@Nullable Object id) Does the given identifier belong to a new instance?
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |