KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfox > persistent > Persistenter


1 /* JFox, the OpenSource J2EE Application Server
2  *
3  * Distributable under GNU LGPL license by gun.org
4  * more details please visit http://www.huihoo.org/jfox
5  */

6
7 package org.jfox.persistent;
8
9 import java.io.Serializable JavaDoc;
10
11 /**
12  * @author <a HREF="mailto:young_yy@hotmail.com">Young Yang</a>
13  */

14
15 public interface Persistenter {
16     /**
17      * Loads the information persisted on the storage media.
18      *
19      * @see #store
20      */

21     public Object JavaDoc load(Object JavaDoc identity) throws Exception JavaDoc;
22
23     /**
24      * Store the given information to the storage media.
25      *
26      * @see #load
27      */

28     public void store(Object JavaDoc identity, Serializable JavaDoc data) throws Exception JavaDoc;
29
30     public boolean remove(Object JavaDoc identity);
31 }
Popular Tags