Revision 23774 branches/v2_0_0_prep/libraries/libFMap_data/src/org/gvsig/fmap/data/DataExplorerParameters.java
DataExplorerParameters.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.fmap.data; |
29 | 29 |
|
30 |
import org.gvsig.fmap.data.exceptions.CopyException; |
|
30 | 31 |
import org.gvsig.fmap.data.exceptions.InitializeException; |
32 |
import org.gvsig.fmap.data.exceptions.NotResgisteredStore; |
|
31 | 33 |
import org.gvsig.fmap.data.spi.AbstractDataParameters; |
32 | 34 |
|
33 | 35 |
import com.iver.utiles.XMLEntity; |
... | ... | |
50 | 52 |
} |
51 | 53 |
|
52 | 54 |
public DataParameters getCopy() |
53 |
throws InitializeException { |
|
54 |
DataExplorerParameters params = DALLocator.getDataManager() |
|
55 |
.createDataExplorerParameters(this.getDataExplorerName()); |
|
55 |
throws CopyException { |
|
56 |
DataExplorerParameters params; |
|
57 |
try { |
|
58 |
params = DALLocator.getDataManager().createDataExplorerParameters( |
|
59 |
this.getDataExplorerName()); |
|
60 |
} catch (Exception e) { |
|
61 |
throw new CopyException(this.toString(), e); |
|
62 |
} |
|
56 | 63 |
params.putAll(this); |
57 | 64 |
return params; |
58 | 65 |
} |
59 | 66 |
|
60 |
public DataStoreParameters newStoreParameters() throws InitializeException { |
|
67 |
public DataStoreParameters newStoreParameters() throws InitializeException, |
|
68 |
NotResgisteredStore { |
|
61 | 69 |
DataManager manager = DALLocator.getDataManager(); |
62 |
DataStoreParameters param = null; |
|
63 |
try { |
|
64 |
param = manager |
|
70 |
DataStoreParameters param = manager |
|
65 | 71 |
.createDataStoreParameters(getDataStoreName()); |
66 |
} catch (InitializeException e) { |
|
67 |
// TODO Auto-generated catch block |
|
68 |
e.printStackTrace(); |
|
69 |
} |
|
70 | 72 |
param.putAllDefaultValues(this); |
71 | 73 |
return param; |
72 | 74 |
} |
Also available in: Unified diff