root / branches / v2_0_0_prep / libraries / libFMap_daldb / src / org / gvsig / fmap / data / feature / db / DBExplorer.java @ 24491
History | View | Annotate | Download (1.47 KB)
1 |
package org.gvsig.fmap.data.feature.db; |
---|---|
2 |
|
3 |
import org.gvsig.fmap.dal.DataManager; |
4 |
import org.gvsig.fmap.dal.DataStore; |
5 |
import org.gvsig.fmap.dal.DataStoreParameters; |
6 |
import org.gvsig.fmap.dal.NewDataStoreParameters; |
7 |
import org.gvsig.fmap.dal.exceptions.InitializeException; |
8 |
import org.gvsig.fmap.dal.exceptions.ReadException; |
9 |
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters; |
10 |
import org.gvsig.fmap.dal.feature.exceptions.InitializeWriterException; |
11 |
import org.gvsig.fmap.dal.feature.impl.AbstractFeatureExplorer; |
12 |
import org.gvsig.fmap.dal.impl.DefaultDataManager; |
13 |
|
14 |
public abstract class DBExplorer extends AbstractFeatureExplorer { |
15 |
|
16 |
public boolean canCreate() { |
17 |
return false; |
18 |
} |
19 |
|
20 |
public DataStoreParameters add(NewFeatureStoreParameters ndsp) throws InitializeWriterException, InitializeException { |
21 |
throw new UnsupportedOperationException(); |
22 |
} |
23 |
|
24 |
public DataStoreParameters add(NewDataStoreParameters ndsp) throws InitializeWriterException, InitializeException { |
25 |
return this.add((NewFeatureStoreParameters)ndsp); |
26 |
} |
27 |
|
28 |
public void remove(DataStoreParameters dsp) throws ReadException { |
29 |
throw new UnsupportedOperationException(); |
30 |
|
31 |
} |
32 |
|
33 |
public NewDataStoreParameters createNewDataStoreParameter()
|
34 |
throws InitializeException {
|
35 |
throw new UnsupportedOperationException(); |
36 |
} |
37 |
|
38 |
public DataStore createDataStore(DataStoreParameters dsp) throws InitializeException, InitializeWriterException { |
39 |
DataManager manager = DefaultDataManager.getManager(); |
40 |
return manager.createStore(dsp);
|
41 |
} |
42 |
|
43 |
} |