Methods Summary |
---|
public java.lang.Object | assemble(java.io.Serializable cached, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)Reconstruct an object from the cacheable representation. At the very least this
method should perform a deep copy. (optional operation)
|
public java.lang.Object | deepCopy(java.lang.Object value)Return a deep copy of the persistent state, stopping at entities and at collections.
|
public java.io.Serializable | disassemble(java.lang.Object value, org.hibernate.engine.SessionImplementor session)Transform the object into its cacheable representation. At the very least this
method should perform a deep copy. That may not be enough for some implementations,
however; for example, associations must be cached as identifier values. (optional
operation)
|
public boolean | equals(java.lang.Object x, java.lang.Object y)Compare two instances of the class mapped by this type for persistence "equality".
Equality of the persistent state.
|
public java.lang.String[] | getPropertyNames()Get the "property names" that may be used in a
query.
|
public org.hibernate.type.Type[] | getPropertyTypes()Get the corresponding "property types".
|
public java.lang.Object | getPropertyValue(java.lang.Object component, int property)Get the value of a property.
|
public int | hashCode(java.lang.Object x)Get a hashcode for the instance, consistent with persistence "equality"
|
public boolean | isMutable()Check if objects of this type mutable.
|
public java.lang.Object | nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, org.hibernate.engine.SessionImplementor session, java.lang.Object owner)Retrieve an instance of the mapped class from a JDBC resultset. Implementors
should handle possibility of null values.
|
public void | nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index, org.hibernate.engine.SessionImplementor session)Write an instance of the mapped class to a prepared statement. Implementors
should handle possibility of null values. A multi-column type should be written
to parameters starting from index.
|
public java.lang.Object | replace(java.lang.Object original, java.lang.Object target, org.hibernate.engine.SessionImplementor session, java.lang.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. For immutable
objects, or null values, it is safe to simply return the first parameter. For
mutable objects, it is safe to return a copy of the first parameter. However, since
composite user types often define component values, it might make sense to recursively
replace component values in the target object.
|
public java.lang.Class | returnedClass()The class returned by nullSafeGet().
|
public void | setPropertyValue(java.lang.Object component, int property, java.lang.Object value)Set the value of a property.
|