Revision 45426 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/DefaultDataManager.java
DefaultDataManager.java | ||
---|---|---|
24 | 24 |
import org.gvsig.expressionevaluator.impl.symboltable.FeatureSymbolTableImpl; |
25 | 25 |
import org.gvsig.fmap.dal.BaseStoresRepository; |
26 | 26 |
import org.gvsig.fmap.dal.DALLocator; |
27 |
|
|
28 | 27 |
import org.gvsig.fmap.dal.DataFactory; |
29 | 28 |
import org.gvsig.fmap.dal.DataManager; |
30 | 29 |
import org.gvsig.fmap.dal.DataServerExplorer; |
... | ... | |
38 | 37 |
import org.gvsig.fmap.dal.DataStoreProviderFactory; |
39 | 38 |
import org.gvsig.fmap.dal.DataTypes; |
40 | 39 |
import org.gvsig.fmap.dal.DatabaseWorkspaceManager; |
41 |
|
|
40 |
import org.gvsig.fmap.dal.DatabaseWorkspaceManager.DatabaseWorkspaceListener; |
|
42 | 41 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
43 | 42 |
import org.gvsig.fmap.dal.OpenErrorHandler; |
44 | 43 |
import org.gvsig.fmap.dal.Register; |
45 | 44 |
import org.gvsig.fmap.dal.StoresRepository; |
45 |
import org.gvsig.fmap.dal.exception.CreateFileStoreException; |
|
46 | 46 |
import org.gvsig.fmap.dal.exception.DataException; |
47 | 47 |
import org.gvsig.fmap.dal.exception.InitializeException; |
48 | 48 |
import org.gvsig.fmap.dal.exception.OpenException; |
49 | 49 |
import org.gvsig.fmap.dal.exception.ProviderNotRegisteredException; |
50 |
import org.gvsig.fmap.dal.exception.CreateFileStoreException; |
|
51 | 50 |
import org.gvsig.fmap.dal.exception.ValidateDataParametersException; |
52 | 51 |
import org.gvsig.fmap.dal.expressionevaluator.DALExpressionBuilder; |
53 | 52 |
import org.gvsig.fmap.dal.expressionevaluator.FeatureAttributeEmulatorExpression; |
... | ... | |
58 | 57 |
import org.gvsig.fmap.dal.feature.Feature; |
59 | 58 |
import org.gvsig.fmap.dal.feature.FeatureAttributeDescriptor; |
60 | 59 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
60 |
import org.gvsig.fmap.dal.feature.FeatureSet.DisposableFeatureSetIterable; |
|
61 | 61 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
62 | 62 |
import org.gvsig.fmap.dal.feature.FeatureType; |
63 | 63 |
import org.gvsig.fmap.dal.feature.ForeingKey; |
... | ... | |
76 | 76 |
import org.gvsig.fmap.dal.feature.spi.cache.FeatureCacheProviderFactory; |
77 | 77 |
import org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProvider; |
78 | 78 |
import org.gvsig.fmap.dal.feature.spi.index.FeatureIndexProviderServices; |
79 |
import org.gvsig.fmap.dal.impl.expressionevaluator.DefaultFeatureAttributeEmulatorExpression; |
|
79 | 80 |
import org.gvsig.fmap.dal.impl.expressionevaluator.DefaultFeatureExpressionEvaluator; |
80 |
import org.gvsig.fmap.dal.impl.expressionevaluator.DefaultFeatureAttributeEmulatorExpression; |
|
81 | 81 |
import org.gvsig.fmap.dal.raster.impl.RasterStoreFactory; |
82 | 82 |
import org.gvsig.fmap.dal.raster.impl.RasterStoreOldFactory; |
83 | 83 |
import org.gvsig.fmap.dal.raster.spi.CoverageStoreProvider; |
84 | 84 |
import org.gvsig.fmap.dal.spi.AbstractDataParameters; |
85 | 85 |
import org.gvsig.fmap.dal.spi.DALSPILocator; |
86 | 86 |
import org.gvsig.fmap.dal.spi.DataManagerProviderServices; |
87 |
import org.gvsig.fmap.dal.spi.DataServerExplorerPoolImpl; |
|
87 | 88 |
import org.gvsig.fmap.dal.spi.DataStoreProvider; |
88 | 89 |
import org.gvsig.fmap.dal.spi.DataStoreProviderServices; |
90 |
import static org.gvsig.fmap.dal.spi.DataStoreProviderServices.PROVIDER_PARAMTER_NAME; |
|
89 | 91 |
import org.gvsig.fmap.dal.store.memory.MemoryStoreParameters; |
90 | 92 |
import org.gvsig.fmap.dal.store.memory.MemoryStoreProvider; |
93 |
import org.gvsig.json.Json; |
|
91 | 94 |
import org.gvsig.tools.ToolsLocator; |
92 | 95 |
import org.gvsig.tools.dataTypes.DataType; |
93 | 96 |
import org.gvsig.tools.dataTypes.DataTypesManager; |
97 |
import org.gvsig.tools.dispose.DisposeUtils; |
|
94 | 98 |
import org.gvsig.tools.dynobject.DynObject; |
95 | 99 |
import org.gvsig.tools.dynobject.DynObjectValueItem; |
96 | 100 |
import org.gvsig.tools.dynobject.DynStruct; |
... | ... | |
102 | 106 |
import org.gvsig.tools.folders.FoldersManager; |
103 | 107 |
import org.gvsig.tools.identitymanagement.SimpleIdentityManager; |
104 | 108 |
import org.gvsig.tools.identitymanagement.UnauthorizedException; |
109 |
import org.gvsig.tools.observer.Observer; |
|
105 | 110 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage; |
106 | 111 |
import org.gvsig.tools.script.Script; |
107 | 112 |
import org.gvsig.tools.script.ScriptManager; |
108 | 113 |
import org.gvsig.tools.service.spi.Services; |
109 | 114 |
import org.slf4j.Logger; |
110 | 115 |
import org.slf4j.LoggerFactory; |
111 |
import org.gvsig.fmap.dal.DatabaseWorkspaceManager.DatabaseWorkspaceListener; |
|
112 |
import org.gvsig.tools.dispose.DisposeUtils; |
|
113 |
import org.gvsig.tools.observer.Observer; |
|
114 |
import org.gvsig.fmap.dal.feature.FeatureSet.DisposableFeatureSetIterable; |
|
115 |
import org.gvsig.fmap.dal.spi.DataServerExplorerPoolImpl; |
|
116 |
import static org.gvsig.fmap.dal.spi.DataStoreProviderServices.PROVIDER_PARAMTER_NAME; |
|
117 |
import org.gvsig.json.Json; |
|
118 | 116 |
|
119 | 117 |
@SuppressWarnings("UseSpecificCatch") |
120 | 118 |
public class DefaultDataManager |
... | ... | |
127 | 125 |
"DAL cache providers"; |
128 | 126 |
|
129 | 127 |
public static final String FILESYSTEM_EXPLORER_NAME = "FilesystemExplorer"; |
130 |
|
|
131 |
|
|
128 |
|
|
129 |
public static final long DEFAULT_MAX_SIZE_FOR_SMALL_FEATURE_SELECTION = 10000; |
|
130 |
|
|
132 | 131 |
private class Registers { |
133 | 132 |
|
134 | 133 |
private final Register store; |
... | ... | |
179 | 178 |
|
180 | 179 |
private final Set<Observer>storeObservers = new HashSet<>(); |
181 | 180 |
|
181 |
private long maxSizeForSmallFeatureSelection; |
|
182 |
|
|
182 | 183 |
public DefaultDataManager() { |
183 | 184 |
this.registers = new Registers(); |
184 | 185 |
this.defaultDataIndexProviders = new HashMap<>(); |
186 |
this.maxSizeForSmallFeatureSelection = DEFAULT_MAX_SIZE_FOR_SMALL_FEATURE_SELECTION; |
|
185 | 187 |
} |
186 | 188 |
|
187 | 189 |
@Override |
... | ... | |
1388 | 1390 |
} |
1389 | 1391 |
return null; |
1390 | 1392 |
} |
1393 |
|
|
1394 |
@Override |
|
1395 |
public void setMaxSizeForSmallFeatureSelection(long size){ |
|
1396 |
this.maxSizeForSmallFeatureSelection = size; |
|
1397 |
} |
|
1391 | 1398 |
|
1392 |
|
|
1399 |
@Override |
|
1400 |
public long getMaxSizeForSmallFeatureSelection() { |
|
1401 |
return this.maxSizeForSmallFeatureSelection; |
|
1402 |
} |
|
1403 |
|
|
1404 |
@Override |
|
1405 |
public Map createLargeMap() { |
|
1406 |
return new LargeMapImpl(); |
|
1407 |
} |
|
1408 |
|
|
1409 |
@Override |
|
1410 |
public Set createLargeSet() { |
|
1411 |
return new LargeSetImpl(); |
|
1412 |
} |
|
1393 | 1413 |
} |
Also available in: Unified diff