站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

Cascades.VersionValue (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.engine
Class Cascades.VersionValue

java.lang.Object
  extended bynet.sf.hibernate.engine.Cascades.VersionValue
Enclosing class:
Cascades

public static class Cascades.VersionValue
extends Object

A strategy for determining if a version value is an version 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.VersionValue()
           
  Cascades.VersionValue(Object value)
          Assume the transient instance is newly instantiated if its version is null or equal to value
 
Method Summary
 Boolean isUnsaved(Object version)
          Does the given version 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.VersionValue

protected Cascades.VersionValue()

Cascades.VersionValue

public Cascades.VersionValue(Object value)
Assume the transient instance is newly instantiated if its version is null or equal to value

Parameters:
value - value to compare to
Method Detail

isUnsaved

public Boolean isUnsaved(Object version)
                  throws MappingException
Does the given version belong to a new instance?

Parameters:
version - version to check
Returns:
true is unsaved, false is saved, null is undefined
Throws:
MappingException