svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / DataManager.java @ 24017
History | View | Annotate | Download (3.08 KB)
1 |
package org.gvsig.fmap.data; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
|
5 |
import org.gvsig.fmap.data.exceptions.InitializeException; |
6 |
import org.gvsig.fmap.data.exceptions.ProviderNotRegisteredException; |
7 |
import org.gvsig.tools.evaluator.Evaluator; |
8 |
|
9 |
import com.iver.utiles.XMLEntity; |
10 |
|
11 |
public interface DataManager { |
12 |
|
13 |
|
14 |
public List getDataStoreProviders(); |
15 |
|
16 |
public List getDataExplorerProviders(); |
17 |
|
18 |
/**
|
19 |
* Returns an array of index provider names that are compatible with the
|
20 |
* given data type.
|
21 |
*
|
22 |
* @param dataType
|
23 |
* @return list of strings with the names of compatible index providers
|
24 |
*/
|
25 |
public List getDataIndexProviders(int dataType); |
26 |
|
27 |
|
28 |
|
29 |
|
30 |
/**
|
31 |
* Start a instance of the solicited parameters inicialize the instance name
|
32 |
* and returns it.
|
33 |
*
|
34 |
* @param String
|
35 |
* name
|
36 |
* @throws InitializeException
|
37 |
* TODO
|
38 |
* @throws ProviderNotRegisteredException
|
39 |
**/
|
40 |
public DataStoreParameters createDataStoreParameters(String name) |
41 |
throws InitializeException, ProviderNotRegisteredException;
|
42 |
|
43 |
public DataStoreParameters createDataStoreParameters(
|
44 |
XMLEntity xmlEntity) |
45 |
throws InitializeException, ProviderNotRegisteredException;
|
46 |
|
47 |
/**
|
48 |
* Start a instance of data store, start a instance of provider that data
|
49 |
* store needs at ends initialize the data store.
|
50 |
*
|
51 |
* @params DataStoreParameters parameters
|
52 |
* @throws InitializeException
|
53 |
* @throws ProviderNotRegisteredException
|
54 |
**/
|
55 |
public DataStore createDataStore(DataStoreParameters parameters)
|
56 |
throws InitializeException, ProviderNotRegisteredException;
|
57 |
|
58 |
public DataStore createDataStore(XMLEntity xmlEntity)
|
59 |
throws InitializeException, ProviderNotRegisteredException;
|
60 |
|
61 |
/**
|
62 |
* Start a instance with solicited parameters starts name in the instance
|
63 |
* and returns it.
|
64 |
*
|
65 |
* @param String
|
66 |
* name
|
67 |
* @throws InitializeException
|
68 |
* @throws ProviderNotRegisteredException
|
69 |
**/
|
70 |
|
71 |
public DataExplorerParameters createDataExplorerParameters(
|
72 |
String name)
|
73 |
throws InitializeException, ProviderNotRegisteredException;
|
74 |
|
75 |
public DataExplorerParameters createDataExplorerParameters(
|
76 |
XMLEntity xmlEntity) throws InitializeException,
|
77 |
ProviderNotRegisteredException; |
78 |
|
79 |
|
80 |
|
81 |
public DataExplorer createDataExplorer(
|
82 |
DataExplorerParameters parameters) |
83 |
throws InitializeException, ProviderNotRegisteredException;
|
84 |
|
85 |
public DataExplorer createDataExplorer(XMLEntity xmlEntity)
|
86 |
throws InitializeException, ProviderNotRegisteredException;
|
87 |
|
88 |
|
89 |
/**
|
90 |
* Sets the default DataIndexProvider for the given data type.
|
91 |
* @param dataType one of the data types defined in the api package
|
92 |
* @param name Provider's name
|
93 |
*/
|
94 |
public void setDefaultDataIndexProviderName(int dataType, String name); |
95 |
|
96 |
/**
|
97 |
* Returns the default DataIndexProvider name, given a data type.
|
98 |
* @param dataType
|
99 |
* @return
|
100 |
*/
|
101 |
public String getDefaultDataIndexProviderName(int dataType); |
102 |
|
103 |
/**
|
104 |
* Returns the default DAL's temporary directory
|
105 |
* @return Temporary directory name
|
106 |
*/
|
107 |
public String getTemporaryDirectory(); |
108 |
|
109 |
|
110 |
public void registerDefaultEvaluator(Class evaluator); |
111 |
|
112 |
public Evaluator createExpresion(String expresion); |
113 |
|
114 |
|
115 |
} |