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 @ 47818
History | View | Annotate | Download (3.11 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 |
import org.gvsig.tools.dataTypes.DataType; |
28 |
|
29 |
public interface DataStoreProviderFactory |
30 |
extends DataFactory {
|
31 |
|
32 |
public static final int UNKNOWN = DataType.UNKNOWN; |
33 |
public static final int YES = DataType.YES; |
34 |
public static final int NO = DataType.NO; |
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. This support is the minimum requisite
|
73 |
* 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 |
public int hasSQLSupport(); |
94 |
|
95 |
/**
|
96 |
* Builds a specific provider
|
97 |
*
|
98 |
* @param parameters
|
99 |
* @param providerServices
|
100 |
* @return the provider
|
101 |
* @throws org.gvsig.fmap.dal.exception.InitializeException
|
102 |
*/
|
103 |
public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException; |
104 |
|
105 |
/**
|
106 |
* Return YES if the provider works best if is tiled.
|
107 |
*
|
108 |
* @return
|
109 |
*/
|
110 |
public int worksBestTiled(); |
111 |
|
112 |
/**
|
113 |
* Return YES if the provider supports tiled.
|
114 |
*
|
115 |
* @return
|
116 |
*/
|
117 |
public int isTiledSupported(); |
118 |
|
119 |
} |