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

History | View | Annotate | Download (3.03 KB)

1 40559 jjdelcerro
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6 42544 jjdelcerro
 * 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 40559 jjdelcerro
 *
11 42544 jjdelcerro
 * 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 40559 jjdelcerro
 *
16 42544 jjdelcerro
 * 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 40559 jjdelcerro
 *
20 42544 jjdelcerro
 * For any additional information, do not hesitate to contact us at info AT
21
 * gvsig.com, or visit our website www.gvsig.com.
22 40559 jjdelcerro
 */
23 40435 jjdelcerro
package org.gvsig.fmap.dal;
24
25
import org.gvsig.fmap.dal.exception.InitializeException;
26
import org.gvsig.fmap.dal.spi.DataStoreProviderServices;
27
28 43020 jjdelcerro
public interface DataStoreProviderFactory
29
    extends DataFactory {
30 42533 dmartinezizquierdo
31 42544 jjdelcerro
    public static final int UNKNOWN = 0;
32
    public static final int YES = 1;
33
    public static final int NO = 2;
34 42533 dmartinezizquierdo
35 42544 jjdelcerro
    /**
36
     * Returns the name of the provider
37
     *
38
     * @return name of the provider
39
     */
40
    public String getName();
41 42533 dmartinezizquierdo
42 42544 jjdelcerro
    /**
43
     * Return a short descripion about the provider
44
     *
45
     * @return description about the provider
46
     */
47
    public String getDescription();
48 42533 dmartinezizquierdo
49 42544 jjdelcerro
    /**
50
     * The provider has read support
51
     *
52
     * @return YES if has read support
53
     */
54
    public int allowRead();
55 42533 dmartinezizquierdo
56 42544 jjdelcerro
    /**
57
     * The provider has write support
58
     *
59
     * @return YES if has write support
60
     */
61
    public int allowWrite();
62 40435 jjdelcerro
63 42544 jjdelcerro
    /**
64
     * The provider can create new stores.
65
     *
66
     * @return YES if has creation support
67
     */
68
    public int allowCreate();
69 40435 jjdelcerro
70 42544 jjdelcerro
    /**
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 40435 jjdelcerro
78 42544 jjdelcerro
    /**
79
     * The provider has vectorial support.
80
     *
81
     * @return YES if has vectorial support
82
     */
83
    public int hasVectorialSupport();
84 42533 dmartinezizquierdo
85 42544 jjdelcerro
    /**
86
     * The provider has raster support.
87
     *
88
     * @return YES if has raster support
89
     */
90
    public int hasRasterSupport();
91 42533 dmartinezizquierdo
92 44191 jjdelcerro
    public int hasSQLSupport();
93
94 42533 dmartinezizquierdo
    /**
95 42544 jjdelcerro
     * Builds a specific provider
96
     *
97
     * @param parameters
98
     * @param providerServices
99
     * @return the provider
100
     * @throws org.gvsig.fmap.dal.exception.InitializeException
101 42533 dmartinezizquierdo
     */
102 42544 jjdelcerro
    public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
103 42533 dmartinezizquierdo
104 43115 fdiaz
    /**
105
     * Return YES if the provider works best if is tiled.
106
     *
107
     * @return
108
     */
109 43076 fdiaz
    public int worksBestTiled();
110
111 43115 fdiaz
    /**
112
     * Return YES if the provider supports tiled.
113
     *
114
     * @return
115
     */
116
    public int isTiledSupported();
117
118 40435 jjdelcerro
}