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

package org.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);
}