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 | 24496 | jmvivo | package org.gvsig.fmap.dal.spi; |
---|---|---|---|
2 | 24017 | jjdelcerro | |
3 | 24496 | jmvivo | import org.gvsig.fmap.dal.DataManager; |
4 | 25572 | jiyarza | import org.gvsig.fmap.dal.DataTypes; |
5 | 24505 | jmvivo | import org.gvsig.fmap.dal.exception.InitializeException; |
6 | import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
||
7 | 24496 | jmvivo | 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 | 24017 | jjdelcerro | |
12 | 24110 | jiyarza | public interface DataManagerProviderServices extends DataManager { |
13 | 24017 | jjdelcerro | |
14 | 24062 | jjdelcerro | public void registerStoreProvider(String name, |
15 | Class dataStoreProviderClass,
|
||
16 | 24017 | jjdelcerro | Class parametersClass);
|
17 | |||
18 | |||
19 | 24062 | jjdelcerro | public void registerExplorerProvider(String name, |
20 | 24017 | jjdelcerro | Class dataSourceClass, Class parametersClass); |
21 | |||
22 | |||
23 | 25572 | jiyarza | /**
|
24 | * Registers a new feature index provider.
|
||
25 | 29326 | jmvivo | *
|
26 | 25572 | jiyarza | * @param name
|
27 | * provider's name
|
||
28 | 29326 | jmvivo | *
|
29 | 25572 | jiyarza | * @param description
|
30 | * provider's description
|
||
31 | 29326 | jmvivo | *
|
32 | 25572 | jiyarza | * @param clazz
|
33 | * a custom FeatureIndexProvider implementation
|
||
34 | 29326 | jmvivo | *
|
35 | 25572 | jiyarza | * @param dataType
|
36 | 29326 | jmvivo | * one of the constants in {@link DataTypes}. This means that this provider
|
37 | 25572 | jiyarza | * can build indexes based on attributes of this type.
|
38 | */
|
||
39 | 24110 | jiyarza | public void registerFeatureIndexProvider(String name, String description, Class clazz, int dataType); |
40 | 24017 | jjdelcerro | |
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 | 24110 | jiyarza | public FeatureIndexProviderServices createFeatureIndexProvider(String name, FeatureStore store, FeatureType type, |
50 | 24568 | jmvivo | String indexName,
|
51 | FeatureAttributeDescriptor attr) throws InitializeException,
|
||
52 | ProviderNotRegisteredException; |
||
53 | 24017 | jjdelcerro | |
54 | 29326 | jmvivo | |
55 | 24017 | jjdelcerro | } |