Package org.hibernate.engine.spi
Interface UnsavedValueStrategy
-
- All Known Implementing Classes:
IdentifierValue,VersionValue
public interface UnsavedValueStrategyThe base contract for determining transient status versus detached status.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetDefaultValue(Object currentValue)Get a default value meant to indicate transience.BooleanisUnsaved(Object test)Make the transient/detached determination
-
-
-
Method Detail
-
isUnsaved
Boolean isUnsaved(Object test)
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.
-
-