Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/instruction/UnionAdapter.java

View differences:

UnionAdapter.java
1 1
package com.hardcode.gdbms.engine.instruction;
2 2

  
3 3
import com.hardcode.driverManager.DriverLoadException;
4

  
4
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
5 5
import com.hardcode.gdbms.engine.data.DataSource;
6 6
import com.hardcode.gdbms.engine.data.DataSourceFactory;
7 7
import com.hardcode.gdbms.engine.data.NoSuchTableException;
8
import com.hardcode.gdbms.engine.data.driver.DriverException;
9 8
import com.hardcode.gdbms.parser.ParseException;
10 9

  
11
import java.io.IOException;
12 10

  
13 11

  
14 12
/**
......
23 21
     * @param table DOCUMENT ME!
24 22
     *
25 23
     * @return DOCUMENT ME!
24
     * @throws DriverLoadException
25
     * @throws ParseException
26 26
     * @throws SemanticException
27 27
     * @throws EvaluationException
28
     * @throws IOException
29
     * @throws DriverException
30
     * @throws ParseException
31
     * @throws DriverLoadException
32
     *
28
     * @throws ReadDriverException TODO
33 29
     * @throws RuntimeException DOCUMENT ME!
34 30
     * @throws IllegalStateException DOCUMENT ME!
35 31
     */
36
    private DataSource getTable(int table) throws DriverLoadException, ParseException, DriverException, SemanticException, IOException, EvaluationException {
32
    private DataSource getTable(int table) throws DriverLoadException, ParseException, SemanticException, EvaluationException, ReadDriverException {
37 33
        Adapter hijo = getChilds()[table];
38 34

  
39 35
        if (hijo instanceof TableRefAdapter) {
......
48 44
    }
49 45

  
50 46
    /**
47
     * @throws DriverLoadException
48
     * @throws ParseException
51 49
     * @throws SemanticException
52 50
     * @throws EvaluationException
53
     * @throws IOException
54
     * @throws DriverException
55
     * @throws ParseException
56
     * @throws DriverLoadException
51
     * @throws ReadDriverException TODO
57 52
     * @see com.hardcode.gdbms.engine.instruction.UnionInstruction#getFirstTable()
58 53
     */
59
    public DataSource getFirstTable() throws DriverLoadException, ParseException, DriverException, SemanticException, IOException, EvaluationException {
54
    public DataSource getFirstTable() throws DriverLoadException, ParseException, SemanticException, EvaluationException, ReadDriverException {
60 55
        return getTable(0);
61 56
    }
62 57

  
......
66 61
     * @param select
67 62
     *
68 63
     * @return
69
     *
70 64
     * @throws ParseException
71 65
     * @throws DriverLoadException
72
     * @throws DriverException
73 66
     * @throws SemanticException
74
     * @throws IOException
75 67
     * @throws EvaluationException
68
     * @throws ReadDriverException TODO
76 69
     */
77 70
    private DataSource getTableBySelect(SelectAdapter select)
78
        throws ParseException, DriverLoadException, DriverException, 
79
            SemanticException, IOException, EvaluationException {
71
        throws ParseException, DriverLoadException, SemanticException, EvaluationException, ReadDriverException {
80 72
        return getInstructionContext().getDSFactory().createRandomDataSource(select,
81 73
            DataSourceFactory.MANUAL_OPENING);
82 74
    }
......
109 101
        } catch (DriverLoadException e) {
110 102
            throw new RuntimeException(e);
111 103
        } catch (NoSuchTableException e) {
112
            throw new TableNotFoundException(e);
113
        } catch (DriverException e) {
114
            throw new RuntimeException(e);
115
        }
104
            throw new TableNotFoundException();
105
        } catch (ReadDriverException e) {
106
        	throw new RuntimeException(e);
107
		}
116 108
    }
117 109

  
118 110
    /**
111
     * @throws DriverLoadException
112
     * @throws ParseException
119 113
     * @throws SemanticException
120 114
     * @throws EvaluationException
121
     * @throws IOException
122
     * @throws DriverException
123
     * @throws ParseException
124
     * @throws DriverLoadException
115
     * @throws ReadDriverException TODO
125 116
     * @see com.hardcode.gdbms.engine.instruction.UnionInstruction#getSecondTable()
126 117
     */
127
    public DataSource getSecondTable() throws DriverLoadException, ParseException, DriverException, SemanticException, IOException, EvaluationException {
118
    public DataSource getSecondTable() throws DriverLoadException, ParseException, SemanticException, EvaluationException, ReadDriverException {
128 119
        return getTable(1);
129 120
    }
130 121
}

Also available in: Unified diff