站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended bynet.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.


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

Constructor Detail

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

Method Detail

isUnsaved

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