|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.IdentifierValue
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.
Field Summary | |
static IdentifierValue |
ANY
Always assume the transient instance is newly instantiated |
static IdentifierValue |
NONE
Never assume the transient instance is newly instantiated |
static IdentifierValue |
NULL
Assume the transient instance is newly instantiated if the identifier is null. |
static IdentifierValue |
UNDEFINED
Assume nothing. |
Constructor Summary | |
protected |
IdentifierValue()
|
|
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 |
Field Detail |
public static final IdentifierValue ANY
public static final IdentifierValue NONE
public static final IdentifierValue NULL
public static final IdentifierValue UNDEFINED
Constructor Detail |
protected IdentifierValue()
public IdentifierValue(Serializable value)
Method Detail |
public Boolean isUnsaved(Serializable id)
public Serializable getDefaultValue(Serializable currentValue)
public String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |