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 | 23754 | jjdelcerro | package org.gvsig.fmap.data; |
---|---|---|---|
2 | |||
3 | 24017 | jjdelcerro | import java.util.List; |
4 | |||
5 | 23754 | jjdelcerro | import org.gvsig.fmap.data.exceptions.InitializeException; |
6 | 23944 | jiyarza | import org.gvsig.fmap.data.exceptions.ProviderNotRegisteredException; |
7 | 23754 | jjdelcerro | import org.gvsig.tools.evaluator.Evaluator; |
8 | |||
9 | import com.iver.utiles.XMLEntity; |
||
10 | |||
11 | public interface DataManager { |
||
12 | |||
13 | 24017 | jjdelcerro | |
14 | public List getDataStoreProviders(); |
||
15 | |||
16 | public List getDataExplorerProviders(); |
||
17 | |||
18 | 23754 | jjdelcerro | /**
|
19 | 24017 | jjdelcerro | * Returns an array of index provider names that are compatible with the
|
20 | * given data type.
|
||
21 | 23754 | jjdelcerro | *
|
22 | 24017 | jjdelcerro | * @param dataType
|
23 | * @return list of strings with the names of compatible index providers
|
||
24 | 23754 | jjdelcerro | */
|
25 | 24017 | jjdelcerro | public List getDataIndexProviders(int dataType); |
26 | 23754 | jjdelcerro | |
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 | 23944 | jiyarza | * @throws ProviderNotRegisteredException
|
39 | 23754 | jjdelcerro | **/
|
40 | public DataStoreParameters createDataStoreParameters(String name) |
||
41 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
42 | 23754 | jjdelcerro | |
43 | public DataStoreParameters createDataStoreParameters(
|
||
44 | 23774 | jjdelcerro | XMLEntity xmlEntity) |
45 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
46 | 23754 | jjdelcerro | |
47 | /**
|
||
48 | 24017 | jjdelcerro | * Start a instance of data store, start a instance of provider that data
|
49 | * store needs at ends initialize the data store.
|
||
50 | 23754 | jjdelcerro | *
|
51 | * @params DataStoreParameters parameters
|
||
52 | * @throws InitializeException
|
||
53 | 23944 | jiyarza | * @throws ProviderNotRegisteredException
|
54 | 23754 | jjdelcerro | **/
|
55 | public DataStore createDataStore(DataStoreParameters parameters)
|
||
56 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
57 | 23754 | jjdelcerro | |
58 | public DataStore createDataStore(XMLEntity xmlEntity)
|
||
59 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
60 | 23754 | jjdelcerro | |
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 | 23944 | jiyarza | * @throws ProviderNotRegisteredException
|
69 | 23754 | jjdelcerro | **/
|
70 | |||
71 | public DataExplorerParameters createDataExplorerParameters(
|
||
72 | 23774 | jjdelcerro | String name)
|
73 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
74 | 23754 | jjdelcerro | |
75 | public DataExplorerParameters createDataExplorerParameters(
|
||
76 | 23774 | jjdelcerro | XMLEntity xmlEntity) throws InitializeException,
|
77 | 23944 | jiyarza | ProviderNotRegisteredException; |
78 | 23754 | jjdelcerro | |
79 | 24017 | jjdelcerro | |
80 | |||
81 | 23754 | jjdelcerro | public DataExplorer createDataExplorer(
|
82 | 23774 | jjdelcerro | DataExplorerParameters parameters) |
83 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
84 | 23754 | jjdelcerro | |
85 | public DataExplorer createDataExplorer(XMLEntity xmlEntity)
|
||
86 | 23944 | jiyarza | throws InitializeException, ProviderNotRegisteredException;
|
87 | 23754 | jjdelcerro | |
88 | |||
89 | /**
|
||
90 | 23861 | jiyarza | * 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 | 23864 | jiyarza | public void setDefaultDataIndexProviderName(int dataType, String name); |
95 | 24017 | jjdelcerro | |
96 | 23867 | jiyarza | /**
|
97 | * Returns the default DataIndexProvider name, given a data type.
|
||
98 | * @param dataType
|
||
99 | * @return
|
||
100 | */
|
||
101 | public String getDefaultDataIndexProviderName(int dataType); |
||
102 | 24017 | jjdelcerro | |
103 | 23861 | jiyarza | /**
|
104 | 23864 | jiyarza | * Returns the default DAL's temporary directory
|
105 | 23861 | jiyarza | * @return Temporary directory name
|
106 | */
|
||
107 | 24017 | jjdelcerro | public String getTemporaryDirectory(); |
108 | 23861 | jiyarza | |
109 | 24017 | jjdelcerro | |
110 | public void registerDefaultEvaluator(Class evaluator); |
||
111 | |||
112 | public Evaluator createExpresion(String expresion); |
||
113 | |||
114 | |||
115 | 23754 | jjdelcerro | } |