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 @ 41272
History | View | Annotate | Download (2.53 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
|
7 |
* modify it under the terms of the GNU General Public License
|
8 |
* as published by the Free Software Foundation; either version 3
|
9 |
* of the License, or (at your option) any later version.
|
10 |
*
|
11 |
* This program is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with this program; if not, write to the Free Software
|
18 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19 |
* MA 02110-1301, USA.
|
20 |
*
|
21 |
* For any additional information, do not hesitate to contact us
|
22 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
23 |
*/
|
24 |
package org.gvsig.fmap.dal; |
25 |
|
26 |
import org.gvsig.fmap.dal.exception.InitializeException; |
27 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
28 |
import org.gvsig.tools.service.spi.ProviderFactory; |
29 |
|
30 |
public interface DataStoreProviderFactory extends ProviderFactory { |
31 |
|
32 |
public static final int UNKNOWN = 0; |
33 |
public static final int YES = 1; |
34 |
public static final int NO = 2; |
35 |
|
36 |
/**
|
37 |
* Returns the name of the provider
|
38 |
*
|
39 |
* @return name of the provider
|
40 |
*/
|
41 |
public String getName(); |
42 |
|
43 |
/**
|
44 |
* Return a short descripion about the provider
|
45 |
*
|
46 |
* @return description about the provider
|
47 |
*/
|
48 |
public String getDescription(); |
49 |
|
50 |
/**
|
51 |
* The provider has read support
|
52 |
*
|
53 |
* @return YES if has read support
|
54 |
*/
|
55 |
public int allowRead(); |
56 |
|
57 |
/**
|
58 |
* The provider has write support
|
59 |
*
|
60 |
* @return YES if has write support
|
61 |
*/
|
62 |
public int allowWrite(); |
63 |
|
64 |
/**
|
65 |
* The provider can create new stores.
|
66 |
*
|
67 |
* @return YES if has creation support
|
68 |
*/
|
69 |
public int allowCreate(); |
70 |
|
71 |
/**
|
72 |
* The provider has tabular support.
|
73 |
* This support is the minimum requisite for a FeatureStore.
|
74 |
*
|
75 |
* @return YES if has write support
|
76 |
*/
|
77 |
public int hasTabularSupport(); |
78 |
|
79 |
/**
|
80 |
* The provider has vectorial support.
|
81 |
*
|
82 |
* @return YES if has vectorial support
|
83 |
*/
|
84 |
public int hasVectorialSupport(); |
85 |
|
86 |
/**
|
87 |
* The provider has raster support.
|
88 |
*
|
89 |
* @return YES if has raster support
|
90 |
*/
|
91 |
public int hasRasterSupport(); |
92 |
|
93 |
/**
|
94 |
* Builds a specific provider
|
95 |
*
|
96 |
* @return the provider
|
97 |
*/
|
98 |
public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException; |
99 |
|
100 |
} |