Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/data/driver/ReadAccess.java

View differences:

ReadAccess.java
1 1
package com.hardcode.gdbms.engine.data.driver;
2 2

  
3
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
3 4
import com.hardcode.gdbms.engine.values.Value;
4 5

  
5 6

  
......
24 25
	 *
25 26
	 * @return subclase de Value con el valor del origen de datos. Never null (use 
26 27
     * ValueFactory.createNullValue() instead)
27
	 *
28
	 * @throws DriverException Si se produce un error accediendo al DataSource
28
	 * @throws ReadDriverException TODO
29 29
	 */
30 30
	public abstract Value getFieldValue(long rowIndex, int fieldId)
31
		throws DriverException;
31
		throws ReadDriverException;
32 32

  
33 33
	/**
34 34
	 * Obtiene el n?mero de campos del DataSource
35 35
	 *
36 36
	 * @return
37
	 *
38
	 * @throws DriverException Si se produce alg?n error accediendo al
39
	 * 		   DataSource
37
	 * @throws ReadDriverException TODO
40 38
	 */
41
	public abstract int getFieldCount() throws DriverException;
39
	public abstract int getFieldCount() throws ReadDriverException;
42 40

  
43 41
	/**
44 42
	 * Devuelve el nombre del campo fieldId-?simo
......
46 44
	 * @param fieldId ?ndice del campo cuyo nombre se quiere obtener
47 45
	 *
48 46
	 * @return
49
	 *
50
	 * @throws DriverException Si se produce alg?n error accediendo al
51
	 * 		   DataSource
47
	 * @throws ReadDriverException TODO
52 48
	 */
53
	public abstract String getFieldName(int fieldId) throws DriverException;
49
	public abstract String getFieldName(int fieldId) throws ReadDriverException;
54 50

  
55 51
	/**
56 52
	 * Obtiene el n?mero de registros del DataSource
57 53
	 *
58 54
	 * @return
59
	 *
60
	 * @throws DriverException Si se produce alg?n error accediendo al
61
	 * 		   DataSource
55
	 * @throws ReadDriverException TODO
62 56
	 */
63
	public abstract long getRowCount() throws DriverException;
57
	public abstract long getRowCount() throws ReadDriverException;
64 58

  
65 59
	/**
66 60
	 * Devuelve el tipo del campo i?simo. Devuelve una constante de la clase
......
69 63
	 * @param i ?ndice del campo cuyo tipo se quiere conocer
70 64
	 *
71 65
	 * @return Class
72
	 *
73
	 * @throws DriverException Si se produce un error accediendo a los tipos de
74
	 * 		   datos
66
	 * @throws ReadDriverException TODO
75 67
	 */
76
	public abstract int getFieldType(int i) throws DriverException;
68
	public abstract int getFieldType(int i) throws ReadDriverException;
77 69
	
78 70
	/**
79 71
	 * Devuelve el ancho del campo i?simo.
......
81 73
	 * @param i ?ndice del campo cuyo ancho se quiere conocer
82 74
	 *
83 75
	 * @return int
84
	 *
85
	 * @throws DriverException Si se produce un error accediendo a los tipos de
86
	 * 		   datos
76
	 * @throws ReadDriverException TODO
87 77
	 */
88
	public abstract int getFieldWidth(int i) throws DriverException;
78
	public abstract int getFieldWidth(int i) throws ReadDriverException;
89 79
}

Also available in: Unified diff