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

History | View | Annotate | Download (3.11 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 44712 jjdelcerro
import org.gvsig.tools.dataTypes.DataType;
28 40435 jjdelcerro
29 43020 jjdelcerro
public interface DataStoreProviderFactory
30
    extends DataFactory {
31 42533 dmartinezizquierdo
32 44712 jjdelcerro
    public static final int UNKNOWN = DataType.UNKNOWN;
33
    public static final int YES = DataType.YES;
34
    public static final int NO = DataType.NO;
35 42533 dmartinezizquierdo
36 42544 jjdelcerro
    /**
37
     * Returns the name of the provider
38
     *
39
     * @return name of the provider
40
     */
41
    public String getName();
42 42533 dmartinezizquierdo
43 42544 jjdelcerro
    /**
44
     * Return a short descripion about the provider
45
     *
46
     * @return description about the provider
47
     */
48
    public String getDescription();
49 42533 dmartinezizquierdo
50 42544 jjdelcerro
    /**
51
     * The provider has read support
52
     *
53
     * @return YES if has read support
54
     */
55
    public int allowRead();
56 42533 dmartinezizquierdo
57 42544 jjdelcerro
    /**
58
     * The provider has write support
59
     *
60
     * @return YES if has write support
61
     */
62
    public int allowWrite();
63 40435 jjdelcerro
64 42544 jjdelcerro
    /**
65
     * The provider can create new stores.
66
     *
67
     * @return YES if has creation support
68
     */
69
    public int allowCreate();
70 40435 jjdelcerro
71 42544 jjdelcerro
    /**
72
     * The provider has tabular support. This support is the minimum requisite
73
     * for a FeatureStore.
74
     *
75
     * @return YES if has write support
76
     */
77
    public int hasTabularSupport();
78 40435 jjdelcerro
79 42544 jjdelcerro
    /**
80
     * The provider has vectorial support.
81
     *
82
     * @return YES if has vectorial support
83
     */
84
    public int hasVectorialSupport();
85 42533 dmartinezizquierdo
86 42544 jjdelcerro
    /**
87
     * The provider has raster support.
88
     *
89
     * @return YES if has raster support
90
     */
91
    public int hasRasterSupport();
92 42533 dmartinezizquierdo
93 44191 jjdelcerro
    public int hasSQLSupport();
94
95 42533 dmartinezizquierdo
    /**
96 42544 jjdelcerro
     * Builds a specific provider
97
     *
98
     * @param parameters
99
     * @param providerServices
100
     * @return the provider
101
     * @throws org.gvsig.fmap.dal.exception.InitializeException
102 42533 dmartinezizquierdo
     */
103 42544 jjdelcerro
    public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException;
104 42533 dmartinezizquierdo
105 43115 fdiaz
    /**
106
     * Return YES if the provider works best if is tiled.
107
     *
108
     * @return
109
     */
110 43076 fdiaz
    public int worksBestTiled();
111
112 43115 fdiaz
    /**
113
     * Return YES if the provider supports tiled.
114
     *
115
     * @return
116
     */
117
    public int isTiledSupported();
118
119 40435 jjdelcerro
}