Revision 652 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/castor/ProjectTable.java
ProjectTable.java | ||
---|---|---|
7 | 7 |
import com.hardcode.gdbms.engine.data.DataSourceFactory.DBDriverInfo; |
8 | 8 |
import com.hardcode.gdbms.engine.data.DataSourceFactory.DriverInfo; |
9 | 9 |
import com.hardcode.gdbms.engine.data.DataSourceFactory.FileDriverInfo; |
10 |
import com.hardcode.gdbms.engine.data.DriverException; |
|
11 | 10 |
import com.hardcode.gdbms.engine.data.NoSuchTableException; |
12 | 11 |
|
12 |
import com.iver.cit.gvsig.fmap.DriverException; |
|
13 | 13 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
14 | 14 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
15 | 15 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
... | ... | |
139 | 139 |
* |
140 | 140 |
* @throws DriverException |
141 | 141 |
*/ |
142 |
public XMLEntity getXMLEntity() throws DriverException {
|
|
142 |
public XMLEntity getXMLEntity() { |
|
143 | 143 |
XMLEntity xml = super.getXMLEntity(); |
144 | 144 |
xml.putProperty("nameClass", this.getClass().getName()); |
145 | 145 |
xml.putProperty("numTables", numTables); |
... | ... | |
192 | 192 |
* @param p DOCUMENT ME! |
193 | 193 |
* |
194 | 194 |
* @throws XMLException |
195 |
* @throws DriverException |
|
195 | 196 |
* |
196 | 197 |
* @see com.iver.cit.gvsig.project.castor.ProjectElement#setXMLEntity(com.iver.utiles.XMLEntity) |
197 | 198 |
*/ |
198 | 199 |
public void setXMLEntity(XMLEntity xml, Project p) |
199 |
throws XMLException { |
|
200 |
throws XMLException, DriverException {
|
|
200 | 201 |
numTables = xml.getIntProperty("numViews"); |
201 | 202 |
|
202 | 203 |
if (xml.getStringProperty("nameLayer") != null) { |
... | ... | |
231 | 232 |
if (layer.getName().equals(getNameLayer())) { |
232 | 233 |
try { |
233 | 234 |
modelo = ((AlphanumericData) layer).getRecordset(); |
234 |
} catch (DriverLoadException e1) {
|
|
235 |
throw new XMLException(e1);
|
|
235 |
} catch (com.iver.cit.gvsig.fmap.DriverException e1) {
|
|
236 |
throw new DriverException(e1);
|
|
236 | 237 |
} |
237 | 238 |
|
238 | 239 |
numTables = ProjectTable.numTables; |
... | ... | |
272 | 273 |
* |
273 | 274 |
* @throws DriverLoadException |
274 | 275 |
*/ |
275 |
public void setAssociatedTable(AlphanumericData associatedTable) |
|
276 |
throws DriverLoadException { |
|
276 |
public void setAssociatedTable(AlphanumericData associatedTable) { |
|
277 | 277 |
this.associatedTable = associatedTable; |
278 |
|
|
279 |
///setSelectionSupport(associatedTable.getRecordset().getSelectionSupport()); |
|
280 | 278 |
} |
281 | 279 |
|
282 | 280 |
/** |
Also available in: Unified diff