svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_dal / src / org / gvsig / fmap / dal / spi / DataManagerProviderServices.java @ 29326
History | View | Annotate | Download (1.85 KB)
1 |
package org.gvsig.fmap.dal.spi; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.DataManager; |
4 |
import org.gvsig.fmap.dal.DataTypes; |
5 |
import org.gvsig.fmap.dal.exception.InitializeException; |
6 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
7 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
8 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
9 |
import org.gvsig.fmap.dal.feature.FeatureType; |
10 |
import org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices; |
11 |
|
12 |
public interface DataManagerProviderServices extends DataManager { |
13 |
|
14 |
public void registerStoreProvider(String name, |
15 |
Class dataStoreProviderClass,
|
16 |
Class parametersClass);
|
17 |
|
18 |
|
19 |
public void registerExplorerProvider(String name, |
20 |
Class dataSourceClass, Class parametersClass); |
21 |
|
22 |
|
23 |
/**
|
24 |
* Registers a new feature index provider.
|
25 |
*
|
26 |
* @param name
|
27 |
* provider's name
|
28 |
*
|
29 |
* @param description
|
30 |
* provider's description
|
31 |
*
|
32 |
* @param clazz
|
33 |
* a custom FeatureIndexProvider implementation
|
34 |
*
|
35 |
* @param dataType
|
36 |
* one of the constants in {@link DataTypes}. This means that this provider
|
37 |
* can build indexes based on attributes of this type.
|
38 |
*/
|
39 |
public void registerFeatureIndexProvider(String name, String description, Class clazz, int dataType); |
40 |
|
41 |
/**
|
42 |
* Returns a DataIndexProvider compatible with the attribute data type.
|
43 |
* @param store associated FeatureStore
|
44 |
* @param type associated FeatureType
|
45 |
* @param attr associated FeatureAttributeDescriptor
|
46 |
* @param providerNames array of strings containing one or more preferred providers
|
47 |
* @return empty DataIndexProvider, initialized and ready to use
|
48 |
*/
|
49 |
public FeatureIndexProviderServices createFeatureIndexProvider(String name, FeatureStore store, FeatureType type, |
50 |
String indexName,
|
51 |
FeatureAttributeDescriptor attr) throws InitializeException,
|
52 |
ProviderNotRegisteredException; |
53 |
|
54 |
|
55 |
} |