org.hibernate.engine
Class Cascades.IdentifierValue

java.lang.Object
  extended byorg.hibernate.engine.Cascades.IdentifierValue
Enclosing class:
Cascades

public static class Cascades.IdentifierValue
extends Object

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.


Constructor Summary
protected Cascades.IdentifierValue()
           
  Cascades.IdentifierValue(Serializable value)
          Assume the transient instance is newly instantiated if its identifier is null or equal to value
 
Method Summary
 Serializable getDefaultValue(Serializable currentValue)
           
 Boolean isUnsaved(Serializable id)
          Does the given identifier belong to a new instance?
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cascades.IdentifierValue

protected Cascades.IdentifierValue()

Cascades.IdentifierValue

public Cascades.IdentifierValue(Serializable value)
Assume the transient instance is newly instantiated if its identifier is null or equal to value

Method Detail

isUnsaved

public Boolean isUnsaved(Serializable id)
Does the given identifier belong to a new instance?


getDefaultValue

public Serializable getDefaultValue(Serializable currentValue)

toString

public String toString()