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.meta;
10:
11: import com.completex.objective.components.persistency.JavaToMetaType;
12:
13: /**
14: * @author Gennady Krizhevsky
15: */
16: public interface ModelLoader {
17:
18: /**
19: * Loads state into existing model or creates a new one if null parameters is passed.
20: * Concrete implementations normally overwrite the values if any are already set.
21: *
22: * @return MetaModel
23: * @throws Exception if state source is inconsistent
24: */
25: MetaModel load(MetaModel model) throws Exception;
26:
27: /**
28: * @see JavaToMetaType
29: * @param javaToMetaType JavaToMetaType to be used by this ModelLoader
30: */
31: void setJavaToMetaType(JavaToMetaType javaToMetaType);
32:
33: }
|