|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.test.instrument.domain.CustomBlobType
public class CustomBlobType
A simple byte[]-based custom type.
Constructor Summary | |
---|---|
CustomBlobType()
|
Method Summary | |
---|---|
Object |
assemble(Serializable arg0,
Object arg1)
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 arg0)
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". |
int |
hashCode(Object arg0)
Get a hashcode for the instance, consistent with persistence "equality" |
boolean |
isMutable()
Are 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 ps,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
Object |
replace(Object arg0,
Object arg1,
Object arg2)
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(). |
int[] |
sqlTypes()
Return the SQL type codes for the columns mapped by this type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomBlobType()
Method Detail |
---|
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws SQLException
nullSafeGet
in interface UserType
rs
- a JDBC result setnames
- the column namesowner
- the containing entity @return Object
SQLException
public void nullSafeSet(PreparedStatement ps, Object value, int index, SessionImplementor session) throws SQLException, HibernateException
nullSafeSet
in interface UserType
ps
- a JDBC prepared statementvalue
- the object to writeindex
- statement parameter index
SQLException
HibernateException
public Object deepCopy(Object value)
deepCopy
in interface UserType
value
- the object to be cloned, which may be null
public boolean isMutable()
isMutable
in interface UserType
public int[] sqlTypes()
sqlTypes
in interface UserType
Types
public Class returnedClass()
returnedClass
in interface UserType
public boolean equals(Object x, Object y)
equals
in interface UserType
public Object assemble(Serializable arg0, Object arg1) throws HibernateException
assemble
in interface UserType
arg0
- the object to be cachedarg1
- the owner of the cached object
HibernateException
public Serializable disassemble(Object arg0) throws HibernateException
disassemble
in interface UserType
arg0
- the object to be cached
HibernateException
public int hashCode(Object arg0) throws HibernateException
hashCode
in interface UserType
HibernateException
public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException
replace
in interface UserType
arg0
- the value from the detached entity being mergedarg1
- the value in the managed entity
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |