Revision 10450 branches/simbologia/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DBFDriver.java
DBFDriver.java | ||
---|---|---|
75 | 75 |
fieldTypes[i] = dbf.getFieldType(i); |
76 | 76 |
} |
77 | 77 |
int aux = (int)(Math.random() * 1000); |
78 |
fTemp = new File(tempDirectoryPath + "/tmpDbf" + aux + ".dbf");
|
|
78 |
fTemp = new File(tempDirectoryPath + "/tmpDbf" + aux + ".dbf"); |
|
79 | 79 |
dbfWriter.setFile(fTemp); |
80 | 80 |
} catch (DriverException e) { |
81 | 81 |
throw new IOException(e.getMessage()); |
... | ... | |
394 | 394 |
|
395 | 395 |
public ITableDefinition getTableDefinition() { |
396 | 396 |
tableDef = new TableDefinition(); |
397 |
int numFields;
|
|
397 |
int numFields; |
|
398 | 398 |
try { |
399 | 399 |
numFields = getFieldCount(); |
400 | 400 |
FieldDescription[] fieldsDescrip = new FieldDescription[numFields]; |
... | ... | |
415 | 415 |
// TODO: ?DEFAULTVALUE? |
416 | 416 |
// fieldsDescrip[i].setDefaultValue(get) |
417 | 417 |
} |
418 |
|
|
418 |
|
|
419 | 419 |
tableDef.setFieldsDesc(fieldsDescrip); |
420 | 420 |
return tableDef; |
421 | 421 |
} catch (DriverException e) { |
... | ... | |
443 | 443 |
// TODO: DEVOLVER FALSE SI NO HA HABIDO CAMBIOS EN LOS CAMPOS. |
444 | 444 |
return true; |
445 | 445 |
} |
446 |
|
|
446 |
public void setFieldValue(int rowIndex, int fieldId, Object obj) |
|
447 |
throws IOException { |
|
448 |
dbf.setFieldValue(rowIndex,fieldId,obj); |
|
449 |
} |
|
447 | 450 |
} |
Also available in: Unified diff