Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/strategies/AggregateDataSource.java

View differences:

AggregateDataSource.java
1 1
package com.hardcode.gdbms.engine.strategies;
2 2

  
3
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
3 4
import com.hardcode.gdbms.engine.data.DataSource;
4 5
import com.hardcode.gdbms.engine.data.FieldNameAccessSupport;
5
import com.hardcode.gdbms.engine.data.driver.DriverException;
6 6
import com.hardcode.gdbms.engine.data.persistence.Memento;
7 7
import com.hardcode.gdbms.engine.data.persistence.MementoException;
8 8
import com.hardcode.gdbms.engine.values.Value;
......
30 30
    /**
31 31
     * @see com.hardcode.gdbms.engine.data.DataSource#start()
32 32
     */
33
    public void start() throws DriverException {
33
    public void start() throws ReadDriverException {
34 34
    }
35 35

  
36 36
    /**
37 37
     * @see com.hardcode.gdbms.engine.data.DataSource#stop()
38 38
     */
39
    public void stop() throws DriverException {
39
    public void stop() throws ReadDriverException {
40 40
    }
41 41

  
42 42
    /**
......
49 49
    /**
50 50
     * @see com.hardcode.gdbms.engine.data.DataSource#getFieldIndexByName(java.lang.String)
51 51
     */
52
    public int getFieldIndexByName(String fieldName) throws DriverException {
52
    public int getFieldIndexByName(String fieldName) throws ReadDriverException {
53 53
        return fnaSupport.getFieldIndexByName(fieldName);
54 54
    }
55 55

  
......
57 57
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldValue(long, int)
58 58
     */
59 59
    public Value getFieldValue(long rowIndex, int fieldId)
60
            throws DriverException {
60
            throws ReadDriverException {
61 61
        return values[fieldId];
62 62
    }
63 63

  
64 64
    /**
65 65
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldCount()
66 66
     */
67
    public int getFieldCount() throws DriverException {
67
    public int getFieldCount() throws ReadDriverException {
68 68
        return values.length;
69 69
    }
70 70

  
71 71
    /**
72 72
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldName(int)
73 73
     */
74
    public String getFieldName(int fieldId) throws DriverException {
74
    public String getFieldName(int fieldId) throws ReadDriverException {
75 75
        return names[fieldId];
76 76
    }
77 77

  
78 78
    /**
79 79
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getRowCount()
80 80
     */
81
    public long getRowCount() throws DriverException {
81
    public long getRowCount() throws ReadDriverException {
82 82
        return 1;
83 83
    }
84 84

  
85 85
    /**
86 86
     * @see com.hardcode.gdbms.engine.data.driver.ReadAccess#getFieldType(int)
87 87
     */
88
    public int getFieldType(int i) throws DriverException {
88
    public int getFieldType(int i) throws ReadDriverException {
89 89
        return values[i].getSQLType();
90 90
    }
91 91

  
92
	public int getFieldWidth(int i) throws DriverException {
92
	public int getFieldWidth(int i) throws ReadDriverException {
93 93
		// TODO Auto-generated method stub
94 94
		return values[i].getWidth();
95 95
	}

Also available in: Unified diff