KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > type > ImmutableType


1 //$Id: ImmutableType.java,v 1.6 2005/02/16 12:50:19 oneovthafew Exp $
2
package org.hibernate.type;
3
4 import java.util.Map JavaDoc;
5
6 import org.hibernate.EntityMode;
7 import org.hibernate.HibernateException;
8 import org.hibernate.engine.SessionFactoryImplementor;
9 import org.hibernate.engine.SessionImplementor;
10
11 /**
12  * Superclass of nullable immutable types.
13  * @author Gavin King
14  */

15 public abstract class ImmutableType extends NullableType {
16
17     public final Object JavaDoc deepCopy(Object JavaDoc value, EntityMode entityMode, SessionFactoryImplementor factory) {
18         return value;
19     }
20
21     public final boolean isMutable() {
22         return false;
23     }
24
25     public Object JavaDoc replace(
26         Object JavaDoc original,
27         Object JavaDoc target,
28         SessionImplementor session,
29         Object JavaDoc owner,
30         Map JavaDoc copyCache)
31     throws HibernateException {
32         return original;
33     }
34
35
36 }
37
Popular Tags