org.hibernate.usertype.UserVersionType |
Class Overview
A user type that may be used for a version property
Summary
[Expand]
Inherited Methods |
From interface
java.util.Comparator
abstract
int
|
compare(T arg0, T arg1)
|
abstract
boolean
|
equals(Object arg0)
|
|
From interface
org.hibernate.usertype.UserType
abstract
Object
|
assemble(Serializable cached, Object owner)
Reconstruct an object from the cacheable representation.
|
abstract
Object
|
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
abstract
Serializable
|
disassemble(Object value)
Transform the object into its cacheable representation.
|
abstract
boolean
|
equals(Object x, Object y)
Compare two instances of the class mapped by this type for persistence "equality".
|
abstract
int
|
hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality"
|
abstract
boolean
|
isMutable()
Are objects of this type mutable?
|
abstract
Object
|
nullSafeGet(ResultSet rs, String[] names, Object owner)
This method is deprecated.
SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
abstract
void
|
nullSafeSet(PreparedStatement st, Object value, int index)
This method is deprecated.
SessionImplementor will be added as an argument in a future version (see HHH-5968)
|
abstract
Object
|
replace(Object original, Object target, Object owner)
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
abstract
Class
|
returnedClass()
The class returned by nullSafeGet().
|
abstract
int[]
|
sqlTypes()
Return the SQL type codes for the columns mapped by this type.
|
|
Public Methods
Parameters
current
| the current version |
session
| The session from which this request originates. |
Generate an initial version.
Parameters
session
| The session from which this request originates. May be
null; currently this only happens during startup when trying to determine
the "unsaved value" of entities. |