Revision 23861

View differences:

branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/DataManager.java
2 2

  
3 3
import org.gvsig.fmap.data.exceptions.InitializeException;
4 4
import org.gvsig.fmap.data.exceptions.NotResgisteredStore;
5
import org.gvsig.fmap.data.feature.FeatureAttributeDescriptor;
6
import org.gvsig.fmap.data.feature.FeatureStore;
7
import org.gvsig.fmap.data.feature.FeatureType;
8
import org.gvsig.fmap.data.index.DataIndexProvider;
5 9
import org.gvsig.tools.evaluator.Evaluator;
6 10
import org.gvsig.tools.operations.Operation;
7 11

  
......
169 173
	 */
170 174

  
171 175
	public String[] getRegistersExplorers();
176
	
177
	/**
178
	 * Returns an array of index provider names that are compatible with
179
	 * the given data type.
180
	 * 
181
	 * @param dataType
182
	 * @return list of strings with the names of compatible index providers
183
	 */
184
	public String[] getDataIndexProviders(int dataType);
185
	
172 186

  
187
	/**
188
	 * Registers a new DataIndexProvider
189
	 * @param name identifier
190
	 * @param description a brief description of the provider
191
	 * @param clazz implementation class
192
	 */
193
	public void registerDataIndexProvider(String name, String description, Class clazz);
194
	
195
	/**
196
	 * Returns a DataIndexProvider compatible with the attribute data type.
197
	 * @param store associated FeatureStore
198
	 * @param type associated FeatureType 
199
	 * @param attr associated FeatureAttributeDescriptor
200
	 * @param providerNames array of strings containing one or more preferred providers
201
	 * @return empty DataIndexProvider, initialized and ready to use
202
	 */
203
	public DataIndexProvider createDataIndexProvider(FeatureStore store, FeatureType type, FeatureAttributeDescriptor attr, String[] providerNames);
204

  
205
	/**
206
	 * Returns the default DataIndexProvider compatible with the attribute data type.
207
	 * @param store associated FeatureStore
208
	 * @param type associated FeatureType 
209
	 * @param attr associated FeatureAttributeDescriptor
210
	 * @return
211
	 */
212
	public DataIndexProvider createDataIndexProvider(FeatureStore store, FeatureType type, FeatureAttributeDescriptor attr);
213
	
214
	/**
215
	 * Sets the default DataIndexProvider for the given data type.
216
	 * @param dataType one of the data types defined in the api package
217
	 * @param name Provider's name
218
	 */
219
    public void setDefaultIndexProvider(int dataType, String name);
220
   
221
    /**
222
     * Returns DAL's temporary directory
223
     * 
224
     * @return Temporary directory name
225
     */
226
    public String getTemporaryDirectory();	
227

  
173 228
}

Also available in: Unified diff