Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/data/FieldNameAccessSupport.java
FieldNameAccessSupport.java | ||
---|---|---|
1 | 1 |
package com.hardcode.gdbms.engine.data; |
2 | 2 |
|
3 |
import com.hardcode.gdbms.engine.data.driver.DriverException;
|
|
3 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
|
|
4 | 4 |
|
5 | 5 |
import java.util.HashMap; |
6 | 6 |
|
... | ... | |
24 | 24 |
} |
25 | 25 |
|
26 | 26 |
/** |
27 |
* @throws ReadDriverException TODO |
|
27 | 28 |
* @see com.hardcode.gdbms.engine.data.FieldNameAccess#getFieldIndexByName(java.lang.String) |
28 | 29 |
*/ |
29 |
public int getFieldIndexByName(String fieldName) throws DriverException { |
|
30 |
public int getFieldIndexByName(String fieldName) throws ReadDriverException {
|
|
30 | 31 |
Integer i = (Integer) getNameIndex().get(fieldName.toUpperCase()); |
31 | 32 |
|
32 | 33 |
if (i == null) { |
... | ... | |
41 | 42 |
* tabla si es la primera vez que se accede |
42 | 43 |
* |
43 | 44 |
* @return tabla indice-nombre |
44 |
* |
|
45 |
* @throws DriverException Si hay error accediendo al DataSource |
|
45 |
* @throws ReadDriverException TODO |
|
46 | 46 |
*/ |
47 |
private HashMap getNameIndex() throws DriverException { |
|
47 |
private HashMap getNameIndex() throws ReadDriverException {
|
|
48 | 48 |
if (nameIndex == null) { |
49 | 49 |
//Este metodo se invocar? con el DataSource abierto ya |
50 | 50 |
nameIndex = new HashMap(); |
Also available in: Unified diff