Top Constructors Methods
org.hibernate.engine

public Class UnsavedValueFactory

extends Object
Class Inheritance
Imports
java.io.Serializable, java.lang.reflect.Constructor, org.hibernate.InstantiationException, .MappingException, org.hibernate.property.Getter, org.hibernate.type.IdentifierType, .PrimitiveType, .Type, .VersionType

Author
Gavin King

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static IdentifierValue
getUnsavedIdentifierValue(String unsavedValue, Getter identifierGetter, Type identifierType, Constructor<T> constructor)

Return an IdentifierValue for the specified unsaved-value.

public static VersionValue
getUnsavedVersionValue(String versionUnsavedValue, Getter versionGetter, VersionType<T> versionType, Constructor<T> constructor)

private static Object
instantiate(Constructor<T> constructor)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UnsavedValueFactoryback to summary
public UnsavedValueFactory()

Method Detail

getUnsavedIdentifierValueback to summary
public static IdentifierValue getUnsavedIdentifierValue(String unsavedValue, Getter identifierGetter, Type identifierType, Constructor<T> constructor)

Return an IdentifierValue for the specified unsaved-value. If none is specified, guess the unsaved value by instantiating a test instance of the class and reading it's id property, or if that is not possible, using the java default value for the type

getUnsavedVersionValueback to summary
public static VersionValue getUnsavedVersionValue(String versionUnsavedValue, Getter versionGetter, VersionType<T> versionType, Constructor<T> constructor)
instantiateback to summary
private static Object instantiate(Constructor<T> constructor)