Mappable.java :  » Database-ORM » ODAL » com » completex » objective » components » persistency » Java Open Source

Java Open Source » Database ORM » ODAL 
ODAL » com » completex » objective » components » persistency » Mappable.java
/**
 *  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);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.