1 |
1 |
package org.gvsig.fmap.dal.spi;
|
2 |
2 |
|
3 |
3 |
import java.io.File;
|
|
4 |
import java.util.Map;
|
4 |
5 |
import org.gvsig.fmap.dal.DataServerExplorerParameters;
|
5 |
6 |
import org.gvsig.fmap.dal.DataServerExplorer_v2;
|
6 |
7 |
import org.gvsig.fmap.dal.DataStore;
|
7 |
8 |
import org.gvsig.fmap.dal.DataStoreParameters;
|
8 |
9 |
import org.gvsig.fmap.dal.exception.DataException;
|
9 |
10 |
import org.gvsig.fmap.dal.SQLBuilder;
|
|
11 |
import org.gvsig.fmap.dal.exception.CloseException;
|
|
12 |
import org.gvsig.fmap.dal.exception.OpenException;
|
10 |
13 |
import org.gvsig.fmap.dal.feature.spi.SQLBuilderBase;
|
|
14 |
import org.gvsig.tools.dispose.DisposeUtils;
|
11 |
15 |
import org.gvsig.tools.dispose.impl.AbstractDisposable;
|
12 |
16 |
import org.gvsig.tools.exception.BaseException;
|
13 |
17 |
import org.gvsig.tools.resourcesstorage.EmptyResourcesStorage;
|
14 |
18 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage;
|
|
19 |
import org.gvsig.tools.util.PropertiesSupport;
|
|
20 |
import org.gvsig.tools.util.PropertiesSupportHelper;
|
15 |
21 |
import org.slf4j.Logger;
|
16 |
22 |
import org.slf4j.LoggerFactory;
|
17 |
23 |
|
... | ... | |
21 |
27 |
|
22 |
28 |
private DataServerExplorerParameters parameters;
|
23 |
29 |
private final DataServerExplorerProviderServices providerServices;
|
|
30 |
private PropertiesSupport propertiesSupport;
|
24 |
31 |
|
25 |
32 |
protected AbstractDataServerExplorer(DataServerExplorerParameters parameters, DataServerExplorerProviderServices providerServices) {
|
26 |
33 |
this.parameters = parameters;
|
27 |
34 |
this.providerServices = providerServices;
|
|
35 |
this.propertiesSupport = new PropertiesSupportHelper();
|
28 |
36 |
}
|
29 |
37 |
|
30 |
38 |
public DataServerExplorerProviderServices getServerExplorerProviderServices() {
|
... | ... | |
80 |
88 |
return new SQLBuilderBase();
|
81 |
89 |
}
|
82 |
90 |
|
|
91 |
@Override
|
|
92 |
public void open() throws OpenException {
|
|
93 |
}
|
|
94 |
|
|
95 |
@Override
|
|
96 |
public void close() throws CloseException {
|
|
97 |
DisposeUtils.dispose(this);
|
|
98 |
}
|
|
99 |
|
|
100 |
@Override
|
|
101 |
public DataStore open(DataStoreParameters dsp) throws DataException {
|
|
102 |
return null;
|
|
103 |
}
|
|
104 |
|
|
105 |
public Object getProperty(String name) {
|
|
106 |
return this.propertiesSupport.getProperty(name);
|
|
107 |
}
|
|
108 |
|
|
109 |
public void setProperty(String name, Object value) {
|
|
110 |
this.propertiesSupport.setProperty(name, value);
|
|
111 |
}
|
|
112 |
|
|
113 |
public Map<String,Object> getProperties() {
|
|
114 |
return this.propertiesSupport.getProperties();
|
|
115 |
}
|
83 |
116 |
}
|