Top Description Methods
org.hibernate.engine.spi

public Interface UnsavedValueStrategy

Known Direct Implementers
org.hibernate.engine.spi.VersionValue, org.hibernate.engine.spi.IdentifierValue

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

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

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

Get a default value meant to indicate transience.

public 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
(Object
The value to be tested
test
)

Make the transient/detached determination

Method Detail

getDefaultValueback to summary
public Object getDefaultValue(Object currentValue)

Get a default value meant to indicate transience.

Parameters
currentValue:Object

The current state value.

Returns:Object

The default transience value.

isUnsavedback to summary
public Boolean isUnsaved(Object test)

Make the transient/detached determination

Parameters
test:Object

The value to be tested

Returns: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.