org.norther.tammi.root.hbm.conversion
Class ImmutableObjectConversion

java.lang.Object
  extended by org.norther.tammi.root.hbm.conversion.ImmutableObjectConversion
All Implemented Interfaces:
UserType
Direct Known Subclasses:
Mask2PermissionConversion, Number2MoneyConversion, Number2MultiwordConversion, String2UTFConversion, String2XMLConversion, StringDate2StringConversion

public abstract class ImmutableObjectConversion
extends Object
implements UserType

An abstract immutable object conversion.

Version:
$Id: ImmutableObjectConversion.java,v 1.2 2009/09/28 15:08:34 cvsimp Exp $
Author:
Ilkka Priha

Constructor Summary
ImmutableObjectConversion()
          Constructs a new conversion.
 
Method Summary
 Object assemble(Serializable cached, Object owner)
           
 Object deepCopy(Object value)
           
 Serializable disassemble(Object value)
           
 boolean equals(Object x, Object y)
           
 int hashCode(Object x)
           
 boolean isMutable()
           
 Object replace(Object original, Object target, Object owner)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.usertype.UserType
nullSafeGet, nullSafeSet, returnedClass, sqlTypes
 

Constructor Detail

ImmutableObjectConversion

public ImmutableObjectConversion()
Constructs a new conversion.

Method Detail

equals

public boolean equals(Object x,
                      Object y)
Specified by:
equals in interface UserType

hashCode

public int hashCode(Object x)
             throws HibernateException
Specified by:
hashCode in interface UserType
Throws:
HibernateException

deepCopy

public Object deepCopy(Object value)
Specified by:
deepCopy in interface UserType

isMutable

public boolean isMutable()
Specified by:
isMutable in interface UserType

disassemble

public Serializable disassemble(Object value)
                         throws HibernateException
Specified by:
disassemble in interface UserType
Throws:
HibernateException

assemble

public Object assemble(Serializable cached,
                       Object owner)
                throws HibernateException
Specified by:
assemble in interface UserType
Throws:
HibernateException

replace

public Object replace(Object original,
                      Object target,
                      Object owner)
               throws HibernateException
Specified by:
replace in interface UserType
Throws:
HibernateException


Copyright © 2004 The Norther Organization. All rights reserved.