Revision 10627 trunk/libraries/libGDBMS/src/main/java/com/hardcode/gdbms/engine/data/edition/DataWare.java

View differences:

DataWare.java
1 1
package com.hardcode.gdbms.engine.data.edition;
2 2

  
3
import com.hardcode.gdbms.driver.exceptions.ReadDriverException;
4
import com.hardcode.gdbms.driver.exceptions.WriteDriverException;
3 5
import com.hardcode.gdbms.engine.data.DataSource;
4
import com.hardcode.gdbms.engine.data.driver.DriverException;
5 6
import com.hardcode.gdbms.engine.values.Value;
6 7
import com.hardcode.gdbms.engine.values.ValueCollection;
7 8

  
......
16 17
     * Deletes the ith row of the DataSource
17 18
     *
18 19
     * @param rowId index of the row to be deleted
19
     *
20
     * @throws DriverException if the row could not be deleted
20
     * @throws WriteDriverException TODO
21
     * @throws ReadDriverException TODO
21 22
     */
22
    public void deleteRow(long rowId) throws DriverException;
23
    public void deleteRow(long rowId) throws WriteDriverException, ReadDriverException;
23 24

  
24 25
    /**
25 26
     * Inserts a row at the end of the dataware with the specified values
26 27
     *
27 28
     * @param values Values of the inserted row fields in the field order
28
     *
29
     * @throws DriverException if the row could not be inserted
29
     * @throws WriteDriverException TODO
30
     * @throws ReadDriverException
30 31
     */
31
    public void insertFilledRow(Value[] values) throws DriverException;
32
    public void insertFilledRow(Value[] values) throws WriteDriverException, ReadDriverException;
32 33

  
33 34
    /**
34 35
     * Inserts a row at the end of the dataware
35 36
     *
36 37
     * @param pk primary key of the inserted row
37
     *
38
     * @throws DriverException if the row could not be inserted
38
     * @throws WriteDriverException TODO
39 39
     */
40
    public void insertEmptyRow(ValueCollection pk) throws DriverException;
40
    public void insertEmptyRow(ValueCollection pk) throws WriteDriverException;
41 41

  
42 42
    /**
43 43
     * Begins a transaction
44
     *
45
     * @throws DriverException If the transaction could not be  started
44
     * @throws ReadDriverException TODO
46 45
     */
47
    public void beginTrans() throws DriverException;
46
    public void beginTrans() throws ReadDriverException;
48 47

  
49 48
    /**
50 49
     * Commits the changes made during the transaction
51
     *
52
     * @throws DriverException If the transaction could not  be commited
50
     * @throws ReadDriverException TODO
51
     * @throws WriteDriverException
53 52
     */
54
    public void commitTrans() throws DriverException;
53
    public void commitTrans() throws ReadDriverException, WriteDriverException;
55 54

  
56 55
    /**
57 56
     * Cancels the changes made during the transaction
58
     *
59
     * @throws DriverException If the transaction could not  be cancelled
57
     * @throws ReadDriverException TODO
58
     * @throws WriteDriverException TODO
60 59
     */
61
    public void rollBackTrans() throws DriverException;
60
    public void rollBackTrans() throws ReadDriverException, WriteDriverException;
62 61

  
63 62
    /**
64 63
     * Sets the value of a cell of the table. Cannot be called outside a
......
67 66
     * @param row row to update
68 67
     * @param fieldId field to update
69 68
     * @param value Value to update
70
     *
71
     * @throws DriverException If the operation failed
69
     * @throws WriteDriverException TODO
70
     * @throws ReadDriverException TODO
72 71
     */
73 72
    public void setFieldValue(long row, int fieldId, Value value)
74
        throws DriverException;
73
        throws WriteDriverException, ReadDriverException;
75 74
}

Also available in: Unified diff