Statistics
| Revision:

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 / DataManager.java @ 47080

History | View | Annotate | Download (24.2 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 java.io.File;
26
import java.util.Collections;
27
import java.util.List;
28
import java.util.Map;
29
import java.util.Set;
30
import java.util.function.Predicate;
31
import javax.json.JsonObject;
32
import org.gvsig.expressionevaluator.Expression;
33
import org.gvsig.expressionevaluator.ExpressionBuilder;
34

    
35
import org.gvsig.fmap.dal.exception.DataException;
36
import org.gvsig.fmap.dal.exception.InitializeException;
37
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException;
38
import org.gvsig.fmap.dal.exception.ValidateDataParametersException;
39
import org.gvsig.fmap.dal.expressionevaluator.DALExpressionBuilder;
40
import org.gvsig.fmap.dal.expressionevaluator.FeatureSymbolTable;
41
import org.gvsig.fmap.dal.feature.EditableFeatureType;
42
import org.gvsig.fmap.dal.feature.Feature;
43
import org.gvsig.fmap.dal.feature.FeatureIndex;
44
import org.gvsig.fmap.dal.feature.FeatureQuery;
45
import org.gvsig.fmap.dal.feature.FeatureStore;
46
import org.gvsig.fmap.dal.feature.FeatureType;
47
import org.gvsig.fmap.dal.feature.paging.FeaturePagingHelper;
48
import org.gvsig.fmap.dal.resource.ResourceManager;
49
import org.gvsig.tools.dataTypes.DataType;
50
import org.gvsig.tools.dynobject.DynObject;
51
import org.gvsig.tools.dynobject.DynStruct;
52
import org.gvsig.tools.dynobject.Tags;
53
import org.gvsig.tools.evaluator.Evaluator;
54
import org.gvsig.tools.exception.BaseException;
55
import org.gvsig.tools.service.spi.Services;
56
import org.gvsig.fmap.dal.expressionevaluator.FeatureAttributeEmulatorExpression;
57
import org.gvsig.fmap.dal.feature.DataProfile;
58
import org.gvsig.fmap.dal.feature.EditableFeature;
59
import org.gvsig.fmap.dal.feature.EditableFeatureAttributeDescriptor;
60
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor;
61
import org.gvsig.fmap.dal.feature.FeatureRuleExpression;
62
import org.gvsig.fmap.dal.feature.FeatureSet;
63
import org.gvsig.fmap.dal.feature.LabelsCacheForFieldValues;
64
import org.gvsig.tools.observer.Observer;
65
import org.gvsig.tools.resourcesstorage.BytesResource;
66
import org.gvsig.tools.resourcesstorage.ResourcesStorage;
67
import org.gvsig.tools.task.SimpleTaskStatus;
68
import org.gvsig.tools.util.Factory;
69
import org.gvsig.tools.util.Invocable;
70

    
71
/**
72
 * There are two top level management roles within DAL: data access and resource
73
 * management.
74
 *
75
 * This class is responsible of the data access management role. It provides
76
 * ways for registering and instantiating {@link DataServerExplorer}(s),
77
 * {@link DataStore}(s), {@link Evaluator}(s) and {@link FeatureIndex}(es).
78
 *
79
 * @see ResourceManager
80
 *
81
 */
82
public interface DataManager extends Services {
83

    
84
    public static final int RECOMENDED_SIZE_FOR_CLOB = 4096;
85
    
86
    public static final String CREATE_STORE_AUTHORIZATION = "dal-create-store";
87
    public static final String READ_STORE_AUTHORIZATION = "dal-read-store";
88
    public static final String WRITE_STORE_AUTHORIZATION = "dal-write-store";
89

    
90
    public static final String DAL_SYMBOL_TABLE = "DAL.SymbolTable.Global";
91
//    public static final String DAL_SYMBOL_TABLE_FEATURE = "DAL.SymbolTable.Feature";
92

    
93
    public static final String FUNCTION_FOREING_VALUE = "FOREING_VALUE";
94
    public static final String FUNCTION_FOREIGN_VALUE = "FOREIGN_VALUE";
95
    public static final String FUNCTION_SELECT = "SELECT";
96
    public static final String FUNCTION_UPDATE = "UPDATE";
97
    public static final String FUNCTION_SELECT_COUNT = "SELECT_COUNT";
98
    public static final String FUNCTION_EXISTS = "EXISTS";
99
    public static final String FUNCTION_EXISTS_TABLE = "EXISTS_TABLE";
100
    public static final String FUNCTION_ROW_TAG = "ROW_TAG";
101
    public static final String FUNCTION_SET_ROW_TAG = "SET_ROW_TAG";
102
    public static final String FUNCTION_CURRENT_ROW = "CURRENT_ROW";
103
    public static final String FUNCTION_CURRENT_STORE = "CURRENT_STORE";
104
    public static final String FUNCTION_ISSELECTED_CURRENT_ROW = "ISSELECTED_CURRENT_ROW";
105
    public static final String FUNCTION_GEOMETRY = "GEOMETRY";
106
    public static final String FUNCTION_CREATE_IN_MEMORY_TABLE = "CREATE_IN_MEMORY_TABLE";
107
    public static final String FUNCTION_INSERT_INTO_TABLE = "INSERT_INTO_TABLE";
108
    public static final String FUNCTION_CREATE_TABLE = "CREATE_TABLE";
109
    public static final String FUNCTION_CREATE_TABLE_STRUCTURE = "CREATE_TABLE_STRUCTURE";
110
    public static final String FUNCTION_SELECT_FROM_SELECTION = "SELECTFROMSELECTION";
111
    public static final String FUNCTION_SELECT_COUNT_FROM_SELECTION = "SELECTCOUNTFROMSELECTION";
112
    public static final String FUNCTION_EXECUTESQL = "EXECUTESQL";
113
    
114
    public static final String DAL_PREFERRED_COLUMNS = "DAL.Preferred.Columns";
115
    
116
    public static final String DAL_USE_LABELS = "DAL.useLabels";
117
    
118
    public static final String DAL_USE_LARGE_SELECTION = "DAL.useLargeSelection";
119
    public static final String DAL_STORE_ENVELOPE = "DAL.forcedEnvelope";
120
    public static final String DAL_FEATURETYPE_MODE_EDIT = "DAL.featureTypeEditMode";
121
    public static final String DAL_FEATURETYPE_MODE_EDIT_MSG = "DAL.featureTypeEditMode.msg";
122

    
123
    public static final int USE_LABELS_YES = 0;
124
    public static final int USE_LABELS_NO = 1;
125
    public static final int USE_LABELS_BOTH = 2;
126
    
127
    /**
128
     * 
129
     * Returns the default DAL's temporary directory
130
     *
131
     * @return Temporary directory name
132
     * @deprecated use FoldersManager of org.gvsig.tools
133
     */
134
    public String getTemporaryDirectory();
135

    
136
    /*
137
     * ====================================================================
138
     *
139
     * Store related services
140
     */
141
    /**
142
     * Creates, initializes and returns an instance of DataStoreParameters given
143
     * the name with which their provider is registered.
144
     *
145
     * @param name provider name
146
     * @param arguments
147
     * @return the data store parameters
148
     *
149
     * @throws ProviderNotRegisteredException if the memory provider is not
150
     * registered
151
     * @throws InitializeException if there is an error initializing the
152
     * parameters for the memory provider
153
     *
154
     */
155
    public DataStoreParameters createStoreParameters(String name, Object... arguments)
156
            throws InitializeException, ProviderNotRegisteredException;
157
    
158
    public DataStoreParameters createStoreParameters(String name)
159
            throws InitializeException, ProviderNotRegisteredException;
160

    
161
    public DataStoreParameters createStoreParameters(byte[] data);
162

    
163
    /**
164
     * Creates, initializes and fill an instance of DataStoreParameters from the
165
     * tags of the DynStruct passed as parameter.
166
     *
167
     * @param struct structure from which tags were created ths parameters.
168
     * @return the data store parameters
169
     *
170
     * @throws ProviderNotRegisteredException if the memory provider is not
171
     * registered
172
     * @throws InitializeException if there is an error initializing the
173
     * parameters for the memory provider
174
     *
175
     */
176
    public DataStoreParameters createStoreParameters(DynStruct struct)
177
            throws InitializeException, ProviderNotRegisteredException;
178

    
179
    public DataStoreParameters createStoreParameters(Tags tags) throws InitializeException, ProviderNotRegisteredException;
180

    
181
    /**
182
     * Creates, initializes and returns an instance of NewDataStoreParameters
183
     * given the name with which their provider is registered.
184
     *
185
     * @param explorer
186
     * @param provider
187
     * @return
188
     *
189
     * @throws InitializeException
190
     * @throws ProviderNotRegisteredException
191
     */
192
    public NewDataStoreParameters createNewStoreParameters(String explorer, String provider)
193
            throws InitializeException, ProviderNotRegisteredException;
194

    
195
    public NewDataStoreParameters createNewStoreParameters(String provider)
196
            throws InitializeException, ProviderNotRegisteredException;
197

    
198
    /**
199
     *
200
     * Creates, initializes and returns an instance of DataStore given the
201
     * DataStoreParameters.
202
     *
203
     * @param provider
204
     * @param parameters parameters used to instantiate and initialize the
205
     * DataStore
206
     * @return
207
     *
208
     * @throws ProviderNotRegisteredException if the memory provider is not
209
     * registered
210
     * @throws InitializeException if there is an error initializing the
211
     * parameters for the memory provider
212
     * @throws ValidateDataParametersException if the parameters to open the
213
     * memory based store are not valid
214
     */
215
    public DataStore openStore(String provider, DynObject parameters)
216
            throws InitializeException, ProviderNotRegisteredException,
217
            ValidateDataParametersException;
218

    
219
    public DataStore openStore(String provider, DataStoreParameters parameters)
220
            throws InitializeException, ProviderNotRegisteredException,
221
            ValidateDataParametersException;
222

    
223
    public DataStore openStore(String providerName, DataStoreParameters 
224
            parameters, boolean ignoreDALResource) 
225
            throws InitializeException, ProviderNotRegisteredException, 
226
            ValidateDataParametersException;
227

    
228
    public DataStore openStore(
229
            String providerName,
230
            Object... arguments)
231
        throws
232
            InitializeException,
233
            ProviderNotRegisteredException,
234
            ValidateDataParametersException;
235

    
236
    public DataStore openStore(DynStruct struct)
237
            throws InitializeException, ProviderNotRegisteredException, ValidateDataParametersException;
238

    
239
    /**
240
     * Create a new physical store
241
     *
242
     * @param explorer
243
     * @param provider
244
     * @param parameters
245
     * @param overwrite
246
     *
247
     * @throws InitializeException
248
     * @throws ProviderNotRegisteredException
249
     * @throws ValidateDataParametersException
250
     */
251
    public void newStore(String explorer, String provider, NewDataStoreParameters parameters, boolean overwrite)
252
            throws InitializeException, ProviderNotRegisteredException,
253
            ValidateDataParametersException;
254

    
255
    public void newStore(String provider, NewDataStoreParameters parameters, boolean overwrite)
256
            throws InitializeException, ProviderNotRegisteredException,
257
            ValidateDataParametersException;
258

    
259
    /**
260
     * Returns a list of Strings containing the names of all available DataStore
261
     * providers.
262
     *
263
     * @return list of String containing available DataStore provider names
264
     */
265
    public List getStoreProviders();
266

    
267
    /**
268
     * Returns a list of Strings containing the names of all available DataStore
269
     * providers for an explorer.
270
     *
271
     * @param name
272
     * @return
273
     */
274
    public List<String> getStoreProviders(String name);
275

    
276
    /*
277
     * ====================================================================
278
     *
279
     * Explorer related services
280
     */
281
    /**
282
     * Returns an instance of {@link DataServerExplorerParameters} corresponding
283
     * to the given name.
284
     *
285
     * @param name name of a registered server explorer provider
286
     * @return
287
     *
288
     * @throws InitializeException if parameter initialization causes an error.
289
     *
290
     * @throws ProviderNotRegisteredException if could not find a provider by
291
     * the given name.
292
     *
293
     *
294
     */
295
    public DataServerExplorerParameters createServerExplorerParameters(
296
            String name)
297
            throws InitializeException, ProviderNotRegisteredException;
298

    
299
    /**
300
     * Returns an instance of {@link DataServerExplorer} given its parameters.
301
     *
302
     * @param name
303
     * @param parameters parameters used to instantiate and initialize the
304
     * {@link DataServerExplorer}.
305
     *
306
     * @return an instance of {@link DataServerExplorer}.
307
     *
308
     * @throws InitializeException
309
     *
310
     * @throws ProviderNotRegisteredException
311
     * @throws ValidateDataParametersException
312
     */
313
    public DataServerExplorer openServerExplorer(
314
            String name,
315
            DataServerExplorerParameters parameters)
316
            throws InitializeException, ProviderNotRegisteredException,
317
            ValidateDataParametersException;
318

    
319
    public DataServerExplorer openServerExplorer(
320
            String explorerName,
321
            Object... arguments)
322
        throws
323
            InitializeException,
324
            ProviderNotRegisteredException,
325
            ValidateDataParametersException;
326
    /**
327
     * @param parameters
328
     * @return
329
     * @throws org.gvsig.fmap.dal.exception.InitializeException
330
     * @throws org.gvsig.fmap.dal.exception.ProviderNotRegisteredException
331
     * @throws org.gvsig.fmap.dal.exception.ValidateDataParametersException
332
     * @deprecated see openServerExplorer
333
     */
334
    public DataServerExplorer createServerExplorer(
335
            DataServerExplorerParameters parameters)
336
            throws InitializeException, ProviderNotRegisteredException,
337
            ValidateDataParametersException;
338

    
339
    /**
340
     * @param parameters
341
     * @return
342
     * @throws org.gvsig.fmap.dal.exception.InitializeException
343
     * @throws org.gvsig.fmap.dal.exception.ProviderNotRegisteredException
344
     * @throws org.gvsig.fmap.dal.exception.ValidateDataParametersException
345
     * @deprecated see openStore
346
     */
347
    public DataStore createStore(DataStoreParameters parameters)
348
            throws InitializeException, ProviderNotRegisteredException,
349
            ValidateDataParametersException;
350

    
351
    /**
352
     * Returns a list of String containing the names of the available
353
     * DataServerExplorer providers.
354
     *
355
     * @return list of String containing the names of the available
356
     * DataServerExplorer providers.
357
     */
358
    public List<String> getExplorerProviders();
359

    
360
    /**
361
     * Creates an instance of Evaluator that represents the given expression.
362
     *
363
     * @param expression String containing a CQL expression.
364
     * @return instance of Evaluator representing the given expression.
365
     * @throws InitializeException
366
     * @deprecated use createFilter
367
     */
368
    public Evaluator createExpresion(String expression)
369
            throws InitializeException;
370

    
371
    /**
372
     * Creates an instance of Evaluator that represents the given expression.
373
     *
374
     * @param expression a Expression with the filter
375
     * @return instance of Evaluator representing the given expression.
376
     * @throws InitializeException
377
     * @deprecated use createFilter
378
     */
379
    public Evaluator createExpresion(Expression expression)
380
            throws InitializeException;
381

    
382
    /**
383
     * Creates an instance of Evaluator that represents the given expression.
384
     *
385
     * @param expression String containing a CQL expression.
386
     * @return instance of Evaluator representing the given expression.
387
     * @throws InitializeException
388
     */
389
    public Evaluator createFilter(String expression)
390
            throws InitializeException;
391

    
392
    /**
393
     * Creates an instance of Evaluator that represents the given expression.
394
     *
395
     * @param expression a Expression with the filter
396
     * @return instance of Evaluator representing the given expression.
397
     * @throws InitializeException
398
     */
399
    public Evaluator createFilter(Expression expression)
400
            throws InitializeException;
401

    
402
    /*
403
     * ====================================================================
404
     *
405
     * Index related services
406
     */
407
    /**
408
     * Returns a list of String containing the names of the available index
409
     * providers.
410
     *
411
     * @return list of strings with the names of the available index providers
412
     */
413
    public List<String> getFeatureIndexProviders();
414

    
415
    /**
416
     * Sets the default DataIndexProvider for the given data type.
417
     *
418
     * @param dataType one of the data types defined in {@link DataTypes}.
419
     * @param name Provider's name
420
     */
421
    public void setDefaultFeatureIndexProviderName(int dataType, String name);
422

    
423
    /**
424
     * Returns the default DataIndexProvider name, given a data type. Data types
425
     * are defined in {@link DataTypes}.
426
     *
427
     * @param dataType one of the constants in {@link DataTypes}.
428
     *
429
     * @return the name of the default {@link FeatureIndexProvider} if there is
430
     * anyone available for the given data type.
431
     */
432
    public String getDefaultFeatureIndexProviderName(int dataType);
433

    
434
    /**
435
     * Utility method to create the {@link DataStoreParameters} to create a
436
     * {@link FeatureStore} based on the {@link MemoryStoreProvider}.
437
     *
438
     * @param autoOrderAttributeName the name of the {@link Feature} attribute
439
     * to be used to order the store {@link Feature}s by default. Set to null if
440
     * you don't want any order by default
441
     * @return the parameters for the memory based store
442
     * @throws InitializeException if there is an error initializing the
443
     * parameters for the memory provider
444
     */
445
    public DataStoreParameters createMemoryStoreParameters(
446
            String autoOrderAttributeName) throws InitializeException;
447

    
448
    /**
449
     * Utility method to create the a {@link FeatureStore} based on the
450
     * {@link MemoryStoreProvider}.
451
     *
452
     * @param autoOrderAttributeName the name of the {@link Feature} attribute
453
     * to be used to order the store {@link Feature}s by default. Set to null if
454
     * you don't want any order by default
455
     * @return the the memory based store
456
     * @throws InitializeException if there is an error initializing the
457
     * parameters for the memory provider
458
     */
459
    public FeatureStore createMemoryStore(String autoOrderAttributeName)
460
            throws InitializeException;
461

    
462
    /**
463
     * Creates a {@link FeaturePagingHelper} to paginate data from a
464
     * {@link FeatureStore}.
465
     *
466
     * @param featureStore to get the {@link Feature}s from
467
     * @param pageSize the page size
468
     * @return a {@link FeaturePagingHelper}
469
     * @throws BaseException if there is an error creating the helper
470
     */
471
    public FeaturePagingHelper createFeaturePagingHelper(
472
            FeatureStore featureStore, int pageSize) throws BaseException;
473

    
474
    /**
475
     * Creates a {@link FeaturePagingHelper} to paginate data from a
476
     * {@link FeatureStore}.
477
     *
478
     * @param featureStore to get the {@link Feature}s from
479
     * @param featureQuery to filter and/or order the data
480
     * @param pageSize the page size
481
     * @return a {@link FeaturePagingHelper}
482
     * @throws BaseException if there is an error creating the helper
483
     */
484
    public FeaturePagingHelper createFeaturePagingHelper(
485
            FeatureStore featureStore, FeatureQuery featureQuery, int pageSize)
486
            throws BaseException;
487

    
488
    public void setOpenErrorHandler(OpenErrorHandler handler);
489

    
490
    public OpenErrorHandler getOpenErrorHandler();
491

    
492
    public DataStoreProviderFactory getStoreProviderFactory(String name);
493

    
494
    public EditableFeatureType createFeatureType();
495
    
496
    public EditableFeatureType createFeatureType(JsonObject json);
497

    
498
    public DataServerExplorerPool getDataServerExplorerPool();
499

    
500
    public void setDataServerExplorerPool(DataServerExplorerPool pool);
501

    
502
    public void setResourcesLoader(ClassLoader loader);
503

    
504
    public void setResourcesLoader(File folder);
505

    
506
    /**
507
     * Return a list of the DataTypes supported for the type of the feature
508
     * attributes. The list is only informative.
509
     *
510
     * @return
511
     */
512
    public List<DataType> getDataTypes();
513

    
514
    public Register getStoreRegister();
515

    
516
    public Register getStoreProviderRegister();
517

    
518
    public Register getServerExplorerRegister();
519

    
520
    public Register getFeatureIndexRegister();
521

    
522
    /**
523
     * Creates a default ExpressionBuilder.
524
     *
525
     * This ExpressionBuilder is not dependent on a data source,
526
     * and is not advisable to use it.
527
     *
528
     * @return the ExpressionBuilder
529
     * @deprecated use ExpressionEvaluatorManager.createExpressionBuilder()
530
     */
531
    public ExpressionBuilder createExpressionBuilder();
532

    
533
    /**
534
         * Returns a list of String containing the names of the available cache providers.
535
         *
536
         * @return
537
         *                 list of strings with the names of the available cache providers
538
         */
539
    public List getFeatureCacheProviders();
540

    
541
        /**
542
         * Returns an instance of {@link DataServerExplorerParameters} corresponding
543
         * to the given name used by the cache to create a store to save the
544
         * retrieved data.
545
         *
546
         * @param name
547
         *            name of a registered feature cache provider
548
     * @return 
549
         *
550
         * @throws InitializeException
551
         *             if parameter initialization causes an error.
552
         *
553
         * @throws ProviderNotRegisteredException
554
         *             if could not find a cache provider by the given name.
555
         *
556
         */
557
        public DynObject createCacheParameters(String name)
558
                        throws InitializeException, ProviderNotRegisteredException;
559

    
560
    /**
561
     * @param providerName
562
     * @param params
563
     * @param overwrite
564
     * @throws DataException
565
     */
566
    public void createFileStore(String providerName, NewDataStoreParameters params, boolean overwrite) throws DataException;
567

    
568
    public FeatureSymbolTable createFeatureSymbolTable();
569
    
570
    public FeatureSymbolTable createFeatureSymbolTable(String name);
571

    
572
    public EditableFeatureAttributeDescriptor createFeatureAttributeDescriptor(String name, int type);
573
    
574
    public FeatureAttributeEmulatorExpression createFeatureAttributeEmulatorExpression(FeatureType type, Expression expression);
575

    
576
    public void registerDataProfile(DataProfile profile);
577

    
578
    public List<DataProfile> getDataProfiles();
579

    
580
    public DataProfile getDataProfile(String name);
581
    
582
    public StoresRepository getStoresRepository();
583
    
584
    public DatabaseWorkspaceManager createDatabaseWorkspaceManager(DataServerExplorerParameters connection);
585
    
586
    public void addDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace);
587

    
588
    public void removeDatabaseWorkspace(DatabaseWorkspaceManager DatabaseWorkspace);
589

    
590
    public void addDatabaseWorkspaceListener(DatabaseWorkspaceManager.DatabaseWorkspaceListener listener);
591
    
592
    public DatabaseWorkspaceManager getDatabaseWorkspace(String name);
593
    
594
    public DatabaseWorkspaceManager getDatabaseWorkspace(DataStoreParameters params);
595
    
596
    public DatabaseWorkspaceManager getDatabaseWorkspace(DataServerExplorerParameters params);
597

    
598
    public void writeDALResource(ResourcesStorage resources, DataStore store);
599
    
600
    public void writeDALResource(ResourcesStorage resources, FeatureType featureType);
601

    
602
    /**
603
     * Return a 35-40 characters unique identifier.
604
     * 
605
     * @return the unique identifier
606
     */
607
    public String createUniqueID();
608

    
609
    public void clearAvailableValuesCache();
610

    
611
    public DALExpressionBuilder createDALExpressionBuilder();
612
    
613
    public boolean isTheOldRasterRegistered();
614
    
615
    public void addStoreObserver(Observer observer);
616
    
617
    public void removeStoreObserver(Observer observer);
618

    
619
    public String getServerExplorerFromStore(String name);
620
    
621
    public void setMaxSizeForSmallFeatureSelection(long size);
622

    
623
    public long getMaxSizeForSmallFeatureSelection();
624
    
625
    public void registerLargeMap(Factory factory);
626
    
627
    public void registerLargeSet(Factory factory);
628
    
629
    public Map createLargeMap();
630
    
631
    public Set createLargeSet();
632
    
633
    public DataTransaction createTransaction();
634
    
635
    public void putFeaturesInClipboard(FeatureSet set);
636
    
637
    public List<EditableFeature> getFeaturesFromClipboard(
638
            FeatureStore store, 
639
            Predicate<FeatureAttributeDescriptor> attrFilter
640
    ) throws DataException;
641

    
642
    public FeatureRuleExpression createFeatureRuleExpression();
643
    
644
    public DataFactory getStoreFactory(DataStoreParameters parameters);    
645
    
646
    public File getCacheResourcesFolder();
647
    
648
    public void clearAllCachedResources();
649
    
650
    public LabelsCacheForFieldValues createLabelsCacheForFieldValues(Invocable labelFormulaProvider, SimpleTaskStatus status);
651
    
652
    public List<FeatureType> getFeatureTypesFromDAL(byte[] daldata);
653
    
654
    public byte[] getDALBytesFromFeatureType(FeatureType ftype);
655
}