1 /* JFox, the OpenSource J2EE Application Server2 *3 * Distributable under GNU LGPL license by gun.org4 * more details please visit http://www.huihoo.org/jfox5 */6 7 package org.jfox.persistent;8 9 import java.io.Serializable ;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 #store20 */21 public Object load(Object identity) throws Exception ;22 23 /**24 * Store the given information to the storage media.25 *26 * @see #load27 */28 public void store(Object identity, Serializable data) throws Exception ;29 30 public boolean remove(Object identity);31 }