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

View differences:

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

  
3 3
import com.hardcode.driverManager.DriverLoadException;
4
import com.hardcode.gdbms.engine.data.driver.DriverException;
4
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
5 5
import com.hardcode.gdbms.engine.instruction.CustomAdapter;
6 6
import com.hardcode.gdbms.engine.instruction.EvaluationException;
7 7
import com.hardcode.gdbms.engine.instruction.SelectAdapter;
......
9 9
import com.hardcode.gdbms.engine.instruction.UnionAdapter;
10 10
import com.hardcode.gdbms.parser.ParseException;
11 11

  
12
import java.io.IOException;
13 12

  
14 13

  
15 14
/**
......
26 25
     *        juego en la instrucci?n, campos, expresiones condicionales, ...
27 26
     *
28 27
     * @return DataSource con el resultado de la instruccion
29
     *
30
     * @throws DriverException Excepci?n que indica error del driver accediendo
31
     *         a  los datos
32 28
     * @throws SemanticException Si se produce alg?n error sem?ntico
33
     * @throws IOException Si se produce un error accediendo a las estructuras
34
     *         de datos internas
35 29
     * @throws EvaluationException If the evaluation of any expression fails
30
     * @throws ReadDriverException TODO
36 31
     * @throws RuntimeException bug
37 32
     */
38 33
    public OperationDataSource select(SelectAdapter instr)
39
        throws DriverException, SemanticException, IOException, 
40
            EvaluationException {
34
        throws SemanticException, EvaluationException, ReadDriverException {
41 35
        throw new RuntimeException(
42 36
            "This strategy does not support select execution");
43 37
    }
......
49 43
     *        juego en la instrucci?n
50 44
     *
51 45
     * @return DataSource con el resultado de la instruccion
52
     *
53
     * @throws DriverException Excepci?n que indica error del driver accediendo
54
     *         a  los datos
55
     * @throws IOException Si se produce un erro accediendo a los datos
56 46
     * @throws SemanticException Si se produce alg?n error sem?ntico
57
     * @throws EvaluationException If there's any problem during expresion evaluation
58
     * @throws ParseException If the union statement contains a select statement and its parse fails
59 47
     * @throws DriverLoadException If cannot find the suitable driver to access the data
48
     * @throws ParseException If the union statement contains a select statement and its parse fails
49
     * @throws EvaluationException If there's any problem during expresion evaluation
50
     * @throws ReadDriverException TODO
60 51
     * @throws RuntimeException bug
61 52
     */
62 53
    public OperationDataSource union(UnionAdapter instr)
63
        throws DriverException, IOException, SemanticException, DriverLoadException, ParseException, EvaluationException {
54
        throws SemanticException, DriverLoadException, ParseException, EvaluationException, ReadDriverException {
64 55
        throw new RuntimeException(
65 56
            "This strategy does not support union execution");
66 57
    }

Also available in: Unified diff