/**
* Objective Database Abstraction Layer (ODAL)
* Copyright (c) 2004, The ODAL Development Group
* All rights reserved.
* For definition of the ODAL Development Group please refer to LICENCE.txt file
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package com.completex.objective.components.persistency;
import java.util.Map;
/**
* Defines methods that are used to save meta object to and recreate from maps
*
* @author Gennady Krizhevsky
*/
public interface Mappable {
/**
* Returns map representation of this object
*
* @return map representation of this object
*/
Map toMap();
/**
* Restores object state from map
*
* @param map map representation of this object
*/
void fromMap(Map map);
}
|