KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > ipanema > base > Transientable


1 /*
2  * Created on 16.03.2004
3  */

4 package com.nightlabs.ipanema.base;
5
6 /**
7  * This interface should be implemented by each PersistenceCapable class that should
8  * be transferred to the client. The method makeTransient() makes sure, the object is
9  * detached and all members contain real objects - no proxies.
10  *
11  * @author marco
12  */

13 public interface Transientable {
14     
15     /**
16      * This method makes sure, a PersistenceCapable object can be transferred to the
17      * client. That means, all members contain real objects - no proxies anymore. If
18      * the class is transient already, this method does nothing.
19      *
20      * @throws ClassCastException If the class is not PersistenceCapable - means if no
21      * jdo enhancement has been done.
22      */

23     public void makeTransient();
24
25 }
26
Popular Tags