Revision 10626 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TableNumericFieldOperations.java
TableNumericFieldOperations.java | ||
---|---|---|
5 | 5 |
import java.util.BitSet; |
6 | 6 |
|
7 | 7 |
import com.hardcode.driverManager.DriverLoadException; |
8 |
import com.hardcode.gdbms.engine.data.driver.DriverException;
|
|
8 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
|
|
9 | 9 |
import com.hardcode.gdbms.engine.values.NullValue; |
10 | 10 |
import com.hardcode.gdbms.engine.values.NumericValue; |
11 | 11 |
import com.iver.andami.PluginServices; |
... | ... | |
57 | 57 |
try { |
58 | 58 |
ds = table.getModel().getModelo().getRecordset(); |
59 | 59 |
} catch (DriverLoadException e1) { |
60 |
// TODO Auto-generated catch block |
|
61 | 60 |
e1.printStackTrace(); |
61 |
} catch (ReadDriverException e) { |
|
62 |
e.printStackTrace(); |
|
62 | 63 |
} |
63 | 64 |
BitSet selectedRows = (BitSet)ds.getSelection().clone(); |
64 | 65 |
try { |
... | ... | |
106 | 107 |
st.setStatistics(media.doubleValue(), max.doubleValue(), min.doubleValue(), varianza.doubleValue(), desviacion, numRows, new BigDecimal(max.doubleValue()).subtract(min).doubleValue(), suma.doubleValue()); |
107 | 108 |
PluginServices.getMDIManager().addWindow(st); |
108 | 109 |
|
109 |
} catch (DriverException e) { |
|
110 |
} catch (ReadDriverException e) {
|
|
110 | 111 |
NotificationManager.addError("No se pudo acceder a los datos", e); |
111 | 112 |
} |
112 | 113 |
} |
... | ... | |
151 | 152 |
(type == Types.NUMERIC)){ |
152 | 153 |
return true; |
153 | 154 |
} |
154 |
} catch (DriverException e) { |
|
155 |
} catch (ReadDriverException e) {
|
|
155 | 156 |
return false; |
156 | 157 |
} |
157 | 158 |
} |
Also available in: Unified diff