unsaved-value attribute in
the mapping file.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| public static final VersionValue | NEGATIVE
Assume the transient instance is newly instantiated if the version is negative, otherwise assume it is a detached instance. |
| public static final VersionValue | NULL
Assume the transient instance is newly instantiated if the version is null, otherwise assume it is a detached instance. |
| public static final VersionValue | UNDEFINED
Assume the transient instance is newly instantiated if the version is null, otherwise defer to the identifier unsaved-value. |
| private final @Nullable Object |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VersionValue(Object
value to compare to value)Assume the transient instance is newly instantiated if
its version is null or equal to |
| Modifier and Type | Method and Description |
|---|---|
| public @Nullable Object | |
| public @Nullable Boolean | |
| public String |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| NEGATIVE | back to summary |
|---|---|
| public static final VersionValue NEGATIVE Assume the transient instance is newly instantiated if the version is negative, otherwise assume it is a detached instance. | |
| NULL | back to summary |
|---|---|
| public static final VersionValue NULL Assume the transient instance is newly instantiated if the version is null, otherwise assume it is a detached instance. | |
| UNDEFINED | back to summary |
|---|---|
| public static final VersionValue UNDEFINED Assume the transient instance is newly instantiated if the version is null, otherwise defer to the identifier unsaved-value. | |
| value | back to summary |
|---|---|
| private final @Nullable Object value | |
| VersionValue | back to summary |
|---|---|
| protected VersionValue() | |
| VersionValue | back to summary |
|---|---|
| public VersionValue(Object value) Assume the transient instance is newly instantiated if
its version 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 version) throws MappingException
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |