public class

IdentifierValue

extends Object
java.lang.Object
   ↳ org.hibernate.engine.IdentifierValue

Class Overview

A strategy for determining if an identifier value is an identifier of a new transient instance or a previously persistent transient instance. The strategy is determined by the unsaved-value attribute in the mapping file.

Summary

Fields
public static final IdentifierValue ANY Always assume the transient instance is newly instantiated
public static final IdentifierValue NONE Never assume the transient instance is newly instantiated
public static final IdentifierValue NULL Assume the transient instance is newly instantiated if the identifier is null.
public static final IdentifierValue UNDEFINED Assume nothing.
Public Constructors
IdentifierValue(Serializable value)
Assume the transient instance is newly instantiated if its identifier is null or equal to value
Protected Constructors
IdentifierValue()
Public Methods
Serializable getDefaultValue(Serializable currentValue)
Boolean isUnsaved(Serializable id)
Does the given identifier belong to a new instance?
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final IdentifierValue ANY

Always assume the transient instance is newly instantiated

public static final IdentifierValue NONE

Never assume the transient instance is newly instantiated

public static final IdentifierValue NULL

Assume the transient instance is newly instantiated if the identifier is null.

public static final IdentifierValue UNDEFINED

Assume nothing.

Public Constructors

public IdentifierValue (Serializable value)

Assume the transient instance is newly instantiated if its identifier is null or equal to value

Protected Constructors

protected IdentifierValue ()

Public Methods

public Serializable getDefaultValue (Serializable currentValue)

public Boolean isUnsaved (Serializable id)

Does the given identifier belong to a new instance?

public String toString ()