Revision 42533 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
DataStoreProviderFactory.java | ||
---|---|---|
28 | 28 |
import org.gvsig.tools.service.spi.ProviderFactory; |
29 | 29 |
|
30 | 30 |
public interface DataStoreProviderFactory extends ProviderFactory { |
31 |
|
|
31 |
|
|
32 | 32 |
public static final int UNKNOWN = 0; |
33 | 33 |
public static final int YES = 1; |
34 | 34 |
public static final int NO = 2; |
35 |
|
|
35 |
|
|
36 | 36 |
/** |
37 | 37 |
* Returns the name of the provider |
38 |
*
|
|
38 |
* |
|
39 | 39 |
* @return name of the provider |
40 | 40 |
*/ |
41 | 41 |
public String getName(); |
42 |
|
|
42 |
|
|
43 | 43 |
/** |
44 | 44 |
* Return a short descripion about the provider |
45 |
*
|
|
45 |
* |
|
46 | 46 |
* @return description about the provider |
47 | 47 |
*/ |
48 | 48 |
public String getDescription(); |
49 |
|
|
49 |
|
|
50 | 50 |
/** |
51 | 51 |
* The provider has read support |
52 |
*
|
|
52 |
* |
|
53 | 53 |
* @return YES if has read support |
54 | 54 |
*/ |
55 | 55 |
public int allowRead(); |
56 |
|
|
56 |
|
|
57 | 57 |
/** |
58 | 58 |
* The provider has write support |
59 |
*
|
|
59 |
* |
|
60 | 60 |
* @return YES if has write support |
61 | 61 |
*/ |
62 | 62 |
public int allowWrite(); |
63 | 63 |
|
64 | 64 |
/** |
65 | 65 |
* The provider can create new stores. |
66 |
*
|
|
66 |
* |
|
67 | 67 |
* @return YES if has creation support |
68 | 68 |
*/ |
69 | 69 |
public int allowCreate(); |
... | ... | |
71 | 71 |
/** |
72 | 72 |
* The provider has tabular support. |
73 | 73 |
* This support is the minimum requisite for a FeatureStore. |
74 |
*
|
|
74 |
* |
|
75 | 75 |
* @return YES if has write support |
76 | 76 |
*/ |
77 | 77 |
public int hasTabularSupport(); |
78 | 78 |
|
79 | 79 |
/** |
80 | 80 |
* The provider has vectorial support. |
81 |
*
|
|
81 |
* |
|
82 | 82 |
* @return YES if has vectorial support |
83 | 83 |
*/ |
84 | 84 |
public int hasVectorialSupport(); |
85 |
|
|
85 |
|
|
86 | 86 |
/** |
87 | 87 |
* The provider has raster support. |
88 |
*
|
|
88 |
* |
|
89 | 89 |
* @return YES if has raster support |
90 | 90 |
*/ |
91 | 91 |
public int hasRasterSupport(); |
92 |
|
|
92 |
|
|
93 | 93 |
/** |
94 | 94 |
* Builds a specific provider |
95 |
*
|
|
95 |
* |
|
96 | 96 |
* @return the provider |
97 | 97 |
*/ |
98 | 98 |
public DataStoreProvider createProvider(DataParameters parameters, DataStoreProviderServices providerServices) throws InitializeException; |
99 | 99 |
|
100 |
/** |
|
101 |
* Returns max size for attributes names |
|
102 |
* returns -1 if it is undefined |
|
103 |
* @return |
|
104 |
*/ |
|
105 |
public int getMaxAttributeNameSize(); |
|
106 |
|
|
100 | 107 |
} |
Also available in: Unified diff