Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.api / src / main / java / org / gvsig / fmap / dal / DataStoreProviderFactory.java @ 40435

History | View | Annotate | Download (1.6 KB)

1
package org.gvsig.fmap.dal;
2

    
3
import org.gvsig.fmap.dal.exception.InitializeException;
4
import org.gvsig.fmap.dal.spi.DataStoreProviderServices;
5
import org.gvsig.tools.service.spi.ProviderFactory;
6

    
7
public interface DataStoreProviderFactory extends ProviderFactory {
8
        
9
        public static final int UNKNOWN = 0;
10
        public static final int YES = 1;
11
        public static final int NO = 2;
12
        
13
        /**
14
         * Returns the name of the provider
15
         * 
16
         * @return name of the provider
17
         */
18
        public String getName();
19
        
20
        /**
21
         * Return a short descripion about the provider
22
         * 
23
         * @return description about the provider
24
         */
25
        public String getDescription();
26
        
27
        /**
28
         * The provider has read support
29
         * 
30
         * @return YES if has read support
31
         */
32
        public int allowRead();
33
        
34
        /**
35
         * The provider has write support
36
         * 
37
         * @return YES if has write support
38
         */
39
        public int allowWrite();
40

    
41
        /**
42
         * The provider can create new stores.
43
         * 
44
         * @return YES if has creation support
45
         */
46
        public int allowCreate();
47

    
48
        /**
49
         * The provider has tabular support.
50
         * This support is the minimum requisite for a FeatureStore.
51
         * 
52
         * @return YES if has write support
53
         */
54
        public int hasTabularSupport();
55

    
56
        /**
57
         * The provider has vectorial support.
58
         * 
59
         * @return YES if has vectorial support
60
         */
61
        public int hasVectorialSupport();
62
        
63
        /**
64
         * The provider has raster support.
65
         * 
66
         * @return YES if has raster support
67
         */
68
        public int hasRasterSupport();
69
                
70
        /**
71
         * Builds a specific provider
72
         * 
73
         * @return the provider
74
         */
75
        public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
76

    
77
}