Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / DataManager.java @ 24079

History | View | Annotate | Download (2.98 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
public interface DataManager {
10

    
11
    /**
12
         * Returns the default DAL's temporary directory
13
         * 
14
         * @return Temporary directory name
15
         */
16
        public String getTemporaryDirectory();
17

    
18
        /*
19
         * ====================================================================
20
         *
21
         * Store related services
22
         */
23

    
24
        /**
25
         * Start a instance of the solicited parameters inicialize the instance name
26
         * and returns it.
27
         *
28
         * @param String
29
         *            name
30
         * @throws InitializeException
31
         *             TODO
32
         * @throws ProviderNotRegisteredException
33
         **/
34
        public DataStoreParameters createStoreParameters(String name)
35
                        throws InitializeException, ProviderNotRegisteredException;
36

    
37
        /**
38
         * Start a instance of data store, start a instance of provider that data
39
         * store needs at ends initialize the data store.
40
         *
41
         * @params DataStoreParameters parameters
42
         * @throws InitializeException
43
         * @throws ProviderNotRegisteredException
44
         **/
45
        public DataStore createStore(DataStoreParameters parameters)
46
                        throws InitializeException, ProviderNotRegisteredException;
47

    
48

    
49
        public List getStoreProviders();
50

    
51
        /*
52
         * ====================================================================
53
         *
54
         * Explorer related services
55
         */
56
        /**
57
         * Start a instance with solicited parameters starts name in the instance
58
         * and returns it.
59
         *
60
         * @param String
61
         *            name
62
         * @throws InitializeException
63
         * @throws ProviderNotRegisteredException
64
         **/
65

    
66
        public DataExplorerParameters createExplorerParameters(
67
                        String name)
68
                        throws InitializeException, ProviderNotRegisteredException;
69

    
70
        public DataExplorer createExplorer(
71
                        DataExplorerParameters parameters)
72
                        throws InitializeException, ProviderNotRegisteredException;
73

    
74

    
75
        public List getExplorerProviders();
76

    
77
        /*
78
         * ====================================================================
79
         * 
80
         * Expresion evaluation related services
81
         */
82

    
83
        public void registerDefaultEvaluator(Class evaluator);
84

    
85
        public Evaluator createExpresion(String expresion)
86
                        throws InitializeException;
87

    
88
        /*
89
         * ====================================================================
90
         * 
91
         * Index related services
92
         */
93

    
94

    
95
        /**
96
         * Returns an array of index provider names that are compatible with the
97
         * given data type.
98
         *
99
         * @param dataType
100
         * @return list of strings with the names of compatible index providers
101
         */
102
        public List getDataIndexProviders(int dataType);
103

    
104
        /**
105
         * Sets the default DataIndexProvider for the given data type.
106
         * @param dataType one of the data types defined in the api package
107
         * @param name Provider's name
108
         */
109
    public void setDefaultDataIndexProviderName(int dataType, String name);
110

    
111
    /**
112
     * Returns the default DataIndexProvider name, given a data type.
113
     * @param dataType
114
     * @return
115
     */
116
    public String getDefaultDataIndexProviderName(int dataType);
117

    
118

    
119
}