| Persistenter.java |
/* JFox, the OpenSource J2EE Application Server
*
* Copyright (C) 2002 huihoo.com
* Distributable under GNU LGPL license
* See the GNU Lesser General Public License for more details.
*/
package org.huihoo.jfox.persistent;
import java.io.Serializable;
/**
*
* @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
*/
public interface Persistenter {
/**
* Loads the information persisted on the storage media.
* @see #store
*/
public Object load(Object identity) throws Exception;
/**
* Store the given information to the storage media.
* @see #load
*/
public void store(Object identity, Serializable data) throws Exception;
public boolean remove(Object identity);
}