01: /**
02: * Objective Database Abstraction Layer (ODAL)
03: * Copyright (c) 2004, The ODAL Development Group
04: * All rights reserved.
05: * For definition of the ODAL Development Group please refer to LICENCE.txt file
06: *
07: * Distributable under LGPL license.
08: * See terms of license at gnu.org.
09: */package com.completex.objective.components.persistency;
10:
11: import java.util.Map;
12:
13: /**
14: * Defines methods that are used to save meta object to and recreate from maps
15: *
16: * @author Gennady Krizhevsky
17: */
18: public interface Mappable {
19: /**
20: * Returns map representation of this object
21: *
22: * @return map representation of this object
23: */
24: Map toMap();
25:
26: /**
27: * Restores object state from map
28: *
29: * @param map map representation of this object
30: */
31: void fromMap(Map map);
32: }
|