Revision 44328 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
AbstractDataServerExplorer.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.spi; |
2 | 2 |
|
3 | 3 |
import java.io.File; |
4 |
import java.util.List; |
|
5 | 4 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
6 | 5 |
import org.gvsig.fmap.dal.DataServerExplorer_v2; |
7 | 6 |
import org.gvsig.fmap.dal.DataStore; |
... | ... | |
13 | 12 |
import org.gvsig.tools.exception.BaseException; |
14 | 13 |
import org.gvsig.tools.resourcesstorage.EmptyResourcesStorage; |
15 | 14 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage; |
16 |
import org.gvsig.tools.resourcesstorage.ResourcesStorage.Resource; |
|
17 | 15 |
|
18 | 16 |
public abstract class AbstractDataServerExplorer extends AbstractDisposable implements DataServerExplorer_v2 { |
19 | 17 |
|
20 | 18 |
private DataServerExplorerParameters parameters; |
21 | 19 |
private final DataServerExplorerProviderServices providerServices; |
22 |
protected ResourcesStorage resourcesStorage = null; |
|
23 | 20 |
|
24 | 21 |
protected AbstractDataServerExplorer(DataServerExplorerParameters parameters, DataServerExplorerProviderServices providerServices) { |
25 | 22 |
this.parameters = parameters; |
... | ... | |
45 | 42 |
return null; |
46 | 43 |
} |
47 | 44 |
|
45 |
@Override |
|
46 |
public boolean exists(DataStoreParameters parameters) { |
|
47 |
return true; |
|
48 |
} |
|
49 |
|
|
50 |
@Override |
|
51 |
public boolean exists(String name) { |
|
52 |
return true; |
|
53 |
} |
|
54 |
|
|
48 | 55 |
@Deprecated |
49 | 56 |
@Override |
50 | 57 |
public File getResourcePath(DataStore dataStore, String resourceName) throws DataException { |
... | ... | |
53 | 60 |
|
54 | 61 |
@Override |
55 | 62 |
public ResourcesStorage getResourcesStorage(DataStore dataStore) { |
56 |
if( this.resourcesStorage==null ) { |
|
57 |
this.resourcesStorage = new EmptyResourcesStorage(); |
|
58 |
} |
|
59 |
return this.resourcesStorage; |
|
63 |
EmptyResourcesStorage resourcesStorage = new EmptyResourcesStorage(); |
|
64 |
return resourcesStorage; |
|
60 | 65 |
} |
61 | 66 |
|
62 | 67 |
@Override |
68 |
public ResourcesStorage getResourcesStorage(DataStoreParameters parameters) { |
|
69 |
EmptyResourcesStorage resourcesStorage = new EmptyResourcesStorage(); |
|
70 |
return resourcesStorage; |
|
71 |
} |
|
72 |
|
|
73 |
@Override |
|
63 | 74 |
public SQLBuilder createSQLBuilder() { |
64 | 75 |
return new SQLBuilderBase(); |
65 | 76 |
} |
Also available in: Unified diff