Top Description Methods
org.hibernate.engine.spi

public Interface UnsavedValueStrategy

Known Direct Implementers
org.hibernate.engine.spi.VersionValue, org.hibernate.engine.spi.IdentifierValue
Imports
org.checkerframework.checker.nullness.qual.Nullable

The base contract for determining transient status versus detached status.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public @Nullable Object

Returns:

The default transience value.
getDefaultValue
(@Nullable Object
The current state value.
currentValue
)

Get a default value meant to indicate transience.

public @Nullable Boolean

Returns:

true 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.
isUnsaved
(@Nullable Object
The value to be tested
test
)

Make the transient/detached determination

Method Detail

getDefaultValueback to summary
public @Nullable Object getDefaultValue(@Nullable Object currentValue)

Get a default value meant to indicate transience.

Parameters
currentValue:@Nullable Object

The current state value.

Returns:@Nullable Object

The default transience value.

isUnsavedback to summary
public @Nullable Boolean isUnsaved(@Nullable Object test)

Make the transient/detached determination

Parameters
test:@Nullable Object

The value to be tested

Returns:@Nullable Boolean

true 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.