Source code: feynman/framework/datastore/DataStore.java
1 /*
2 * $Header: /cvsroot/feynman/src/feynman/framework/datastore/DataStore.java,v 1.1.1.1 2002/11/12 02:25:41 wesley_bailey Exp $
3 * $Revision: 1.1.1.1 $
4 * $Date: 2002/11/12 02:25:41 $
5 * $Copyright: Copyright (C) 2002 Path Integral Software $
6 */
7 package feynman.framework.datastore;
8
9 import feynman.framework.system.PhysicalMeasurement;
10
11 /**
12 * Interface for defining data store capabilities within the framework for
13 * the <b>PhysicalMeasurement</b> bean. The data store could be as simple
14 * as a file or a database table. To check for the current supported
15 * implementations, check the documentation in the <b>DataStoreFactory</b>
16 * class.
17 *
18 * @author Wes Bailey
19 * @version $Revision: 1.1.1.1 $ $Date: 2002/11/12 02:25:41 $
20 */
21 public interface DataStore {
22
23 /**
24 * Method to open a connection to the data store.
25 */
26 public void open(String source) throws ConnectionException;
27
28 /**
29 * Method to save the PhysicalMeasurement bean to the data store. At
30 * the present time, the framework will only support saving this bean
31 * to the data store.
32 */
33 public void save(PhysicalMeasurement pm);
34
35 /**
36 * Method to close the connection to the data store.
37 */
38 public void close() throws ConnectionException;
39
40 }