当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
Cascades.IdentifierValue (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.engine
Class Cascades.IdentifierValue
java.lang.Object
net.sf.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cascades.IdentifierValue
protected Cascades.IdentifierValue()
Cascades.IdentifierValue
public Cascades.IdentifierValue(Object value)
- Assume the transient instance is newly instantiated if
its identifier is null or equal to value
isUnsaved
public boolean isUnsaved(Serializable id)
- Does the given identifier belong to a new instance?