public interface UnsavedValueStrategy
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getDefaultValue(java.lang.Object currentValue)
Get a default value meant to indicate transience.
|
java.lang.Boolean |
isUnsaved(java.lang.Object test)
Make the transient/detached determination
|
java.lang.Boolean isUnsaved(java.lang.Object test)
test
- The value to be testedtrue
indicates the value corresponds to unsaved data (aka, transient state; false
indicates the value does not corresponds to unsaved data (aka, detached state); null
indicates that
this strategy was not able to determine conclusively.java.lang.Object getDefaultValue(java.lang.Object currentValue)
currentValue
- The current state value.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.