Home » Hibernate-3.3.2.GA » org.hibernate » engine » [javadoc | source]
org.hibernate.engine
public class: VersionValue [javadoc | source]
java.lang.Object
   org.hibernate.engine.VersionValue
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.
Field Summary
public static final  VersionValue NULL    Assume the transient instance is newly instantiated if the version is null, otherwise assume it is a detached instance. 
public static final  VersionValue UNDEFINED    Assume the transient instance is newly instantiated if the version is null, otherwise defer to the identifier unsaved-value. 
public static final  VersionValue NEGATIVE    Assume the transient instance is newly instantiated if the version is negative, otherwise assume it is a detached instance. 
Constructor:
 protected VersionValue() 
 public 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 from org.hibernate.engine.VersionValue Summary:
getDefaultValue,   isUnsaved,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.engine.VersionValue Detail:
 public Object getDefaultValue(Object currentValue) 
 public Boolean isUnsaved(Object version) throws MappingException 
    Does the given version belong to a new instance?
 public String toString()