Package org.hibernate.engine.spi
Interface UnsavedValueStrategy
- All Known Implementing Classes:
IdentifierValue,VersionValue
public interface UnsavedValueStrategy
The base contract for determining transient status versus detached status.
-
Method Summary
-
Method Details
-
isUnsaved
Make the transient/detached determination- Parameters:
test- The value to be tested- Returns:
trueindicates the value corresponds to unsaved data (aka, transient state);falseindicates the value does not corresponds to unsaved data (aka, detached state);nullindicates that this strategy was not able to determine conclusively.
-
getDefaultValue
Get a default value meant to indicate transience.- Parameters:
currentValue- The current state value.- Returns:
- The default transience value.
-