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 @ 44191

History | View | Annotate | Download (3.03 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or modify it under
7
 * the terms of the GNU General Public License as published by the Free Software
8
 * Foundation; either version 3 of the License, or (at your option) any later
9
 * version.
10
 *
11
 * This program is distributed in the hope that it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14
 * details.
15
 *
16
 * You should have received a copy of the GNU General Public License along with
17
 * this program; if not, write to the Free Software Foundation, Inc., 51
18
 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
 *
20
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22
 */
23
package org.gvsig.fmap.dal;
24

    
25
import org.gvsig.fmap.dal.exception.InitializeException;
26
import org.gvsig.fmap.dal.spi.DataStoreProviderServices;
27

    
28
public interface DataStoreProviderFactory
29
    extends DataFactory {
30

    
31
    public static final int UNKNOWN = 0;
32
    public static final int YES = 1;
33
    public static final int NO = 2;
34

    
35
    /**
36
     * Returns the name of the provider
37
     *
38
     * @return name of the provider
39
     */
40
    public String getName();
41

    
42
    /**
43
     * Return a short descripion about the provider
44
     *
45
     * @return description about the provider
46
     */
47
    public String getDescription();
48

    
49
    /**
50
     * The provider has read support
51
     *
52
     * @return YES if has read support
53
     */
54
    public int allowRead();
55

    
56
    /**
57
     * The provider has write support
58
     *
59
     * @return YES if has write support
60
     */
61
    public int allowWrite();
62

    
63
    /**
64
     * The provider can create new stores.
65
     *
66
     * @return YES if has creation support
67
     */
68
    public int allowCreate();
69

    
70
    /**
71
     * The provider has tabular support. This support is the minimum requisite
72
     * for a FeatureStore.
73
     *
74
     * @return YES if has write support
75
     */
76
    public int hasTabularSupport();
77

    
78
    /**
79
     * The provider has vectorial support.
80
     *
81
     * @return YES if has vectorial support
82
     */
83
    public int hasVectorialSupport();
84

    
85
    /**
86
     * The provider has raster support.
87
     *
88
     * @return YES if has raster support
89
     */
90
    public int hasRasterSupport();
91

    
92
    public int hasSQLSupport();
93
    
94
    /**
95
     * Builds a specific provider
96
     *
97
     * @param parameters
98
     * @param providerServices
99
     * @return the provider
100
     * @throws org.gvsig.fmap.dal.exception.InitializeException
101
     */
102
    public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
103

    
104
    /**
105
     * Return YES if the provider works best if is tiled.
106
     *
107
     * @return
108
     */
109
    public int worksBestTiled();
110

    
111
    /**
112
     * Return YES if the provider supports tiled.
113
     *
114
     * @return
115
     */
116
    public int isTiledSupported();
117

    
118
}