|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.envers.test.entities.customtype.CompositeTestUserType
public class CompositeTestUserType
Constructor Summary | |
---|---|
CompositeTestUserType()
|
Method Summary | |
---|---|
Object |
assemble(Serializable cached,
SessionImplementor session,
Object owner)
Reconstruct an object from the cacheable representation. |
Object |
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at collections. |
Serializable |
disassemble(Object value,
SessionImplementor session)
Transform the object into its cacheable representation. |
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality". |
String[] |
getPropertyNames()
Get the "property names" that may be used in a query. |
Type[] |
getPropertyTypes()
Get the corresponding "property types". |
Object |
getPropertyValue(Object component,
int property)
Get the value of a property. |
int |
hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality" |
boolean |
isMutable()
Check if objects of this type mutable. |
Object |
nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
Object |
replace(Object original,
Object target,
SessionImplementor session,
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. |
Class |
returnedClass()
The class returned by nullSafeGet(). |
void |
setPropertyValue(Object component,
int property,
Object value)
Set the value of a property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeTestUserType()
Method Detail |
---|
public String[] getPropertyNames()
CompositeUserType
getPropertyNames
in interface CompositeUserType
public Type[] getPropertyTypes()
CompositeUserType
getPropertyTypes
in interface CompositeUserType
public Object getPropertyValue(Object component, int property) throws HibernateException
CompositeUserType
getPropertyValue
in interface CompositeUserType
component
- an instance of class mapped by this "type"
HibernateException
public void setPropertyValue(Object component, int property, Object value) throws HibernateException
CompositeUserType
setPropertyValue
in interface CompositeUserType
component
- an instance of class mapped by this "type"value
- the value to set
HibernateException
public Class returnedClass()
CompositeUserType
returnedClass
in interface CompositeUserType
public boolean equals(Object x, Object y) throws HibernateException
CompositeUserType
equals
in interface CompositeUserType
HibernateException
public int hashCode(Object x) throws HibernateException
CompositeUserType
hashCode
in interface CompositeUserType
HibernateException
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
CompositeUserType
nullSafeGet
in interface CompositeUserType
rs
- a JDBC result setnames
- the column namesowner
- the containing entity
HibernateException
SQLException
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
CompositeUserType
nullSafeSet
in interface CompositeUserType
st
- a JDBC prepared statementvalue
- the object to writeindex
- statement parameter index
HibernateException
SQLException
public Object deepCopy(Object value) throws HibernateException
CompositeUserType
deepCopy
in interface CompositeUserType
value
- generally a collection element or entity field
HibernateException
public boolean isMutable()
CompositeUserType
isMutable
in interface CompositeUserType
public Serializable disassemble(Object value, SessionImplementor session) throws HibernateException
CompositeUserType
disassemble
in interface CompositeUserType
value
- the object to be cached
HibernateException
public Object assemble(Serializable cached, SessionImplementor session, Object owner) throws HibernateException
CompositeUserType
assemble
in interface CompositeUserType
cached
- the object to be cachedowner
- the owner of the cached object
HibernateException
public Object replace(Object original, Object target, SessionImplementor session, Object owner) throws HibernateException
CompositeUserType
replace
in interface CompositeUserType
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |