svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.spi / src / main / java / org / gvsig / fmap / dal / spi / AbstractDataServerExplorer.java @ 46830
History | View | Annotate | Download (2.66 KB)
1 |
package org.gvsig.fmap.dal.spi; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
5 |
import org.gvsig.fmap.dal.DataServerExplorer_v2; |
6 |
import org.gvsig.fmap.dal.DataStore; |
7 |
import org.gvsig.fmap.dal.DataStoreParameters; |
8 |
import org.gvsig.fmap.dal.exception.DataException; |
9 |
import org.gvsig.fmap.dal.SQLBuilder; |
10 |
import org.gvsig.fmap.dal.feature.spi.SQLBuilderBase; |
11 |
import org.gvsig.tools.dispose.impl.AbstractDisposable; |
12 |
import org.gvsig.tools.exception.BaseException; |
13 |
import org.gvsig.tools.resourcesstorage.EmptyResourcesStorage; |
14 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage; |
15 |
import org.slf4j.Logger; |
16 |
import org.slf4j.LoggerFactory; |
17 |
|
18 |
public abstract class AbstractDataServerExplorer extends AbstractDisposable implements DataServerExplorer_v2 { |
19 |
|
20 |
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractDataServerExplorer.class); |
21 |
|
22 |
private DataServerExplorerParameters parameters;
|
23 |
private final DataServerExplorerProviderServices providerServices; |
24 |
|
25 |
protected AbstractDataServerExplorer(DataServerExplorerParameters parameters, DataServerExplorerProviderServices providerServices) {
|
26 |
this.parameters = parameters;
|
27 |
this.providerServices = providerServices;
|
28 |
} |
29 |
|
30 |
public DataServerExplorerProviderServices getServerExplorerProviderServices() {
|
31 |
return this.providerServices; |
32 |
} |
33 |
|
34 |
@Override
|
35 |
public DataServerExplorerParameters getParameters() {
|
36 |
return this.parameters; |
37 |
} |
38 |
|
39 |
@Override
|
40 |
protected void doDispose() throws BaseException { |
41 |
this.parameters = null; |
42 |
} |
43 |
|
44 |
@Override
|
45 |
public DataStoreParameters get(String name) throws DataException { |
46 |
return null; |
47 |
} |
48 |
|
49 |
@Override
|
50 |
public boolean exists(DataStoreParameters parameters) throws DataException { |
51 |
return true; |
52 |
} |
53 |
|
54 |
@Deprecated
|
55 |
@Override
|
56 |
public File getResourcePath(DataStore dataStore, String resourceName) throws DataException { |
57 |
return null; |
58 |
} |
59 |
|
60 |
@Override
|
61 |
public ResourcesStorage getResourcesStorage() {
|
62 |
ResourcesStorage resourcesStorage = ResourcesStorage.EMPTY_RESOURCESSTORAGE; |
63 |
return resourcesStorage;
|
64 |
} |
65 |
|
66 |
@Override
|
67 |
public ResourcesStorage getResourcesStorage(DataStore dataStore) {
|
68 |
ResourcesStorage resourcesStorage = ResourcesStorage.EMPTY_RESOURCESSTORAGE; |
69 |
return resourcesStorage;
|
70 |
} |
71 |
|
72 |
@Override
|
73 |
public ResourcesStorage getResourcesStorage(DataStoreParameters parameters) {
|
74 |
ResourcesStorage resourcesStorage = ResourcesStorage.EMPTY_RESOURCESSTORAGE; |
75 |
return resourcesStorage;
|
76 |
} |
77 |
|
78 |
@Override
|
79 |
public SQLBuilder createSQLBuilder() {
|
80 |
return new SQLBuilderBase(); |
81 |
} |
82 |
|
83 |
} |