equal
deleted
inserted
replaced
23 |
23 |
24 /** |
24 /** |
25 * |
25 * |
26 * @author Ing. František Kučera (frantovo.cz) |
26 * @author Ing. František Kučera (frantovo.cz) |
27 */ |
27 */ |
28 public interface Formatter { |
28 public interface Formatter extends AutoCloseable { |
29 |
29 |
30 void writeStartBatch(); |
30 void writeStartBatch(); |
31 |
31 |
32 void writeStartDatabase(DatabaseDefinition databaseDefinition); |
32 void writeStartDatabase(DatabaseDefinition databaseDefinition); |
33 |
33 |
34 void writeEndDatabase(); |
34 void writeEndDatabase(); |
35 |
35 |
36 void writeStartResultSet(); |
36 void writeStartResultSet(); |
52 void writeStartUpdatesResult(); |
52 void writeStartUpdatesResult(); |
53 |
53 |
54 void writeUpdatedRowsCount(int updatedRowsCount); |
54 void writeUpdatedRowsCount(int updatedRowsCount); |
55 |
55 |
56 void writeEndUpdatesResult(); |
56 void writeEndUpdatesResult(); |
57 |
57 |
58 void writeEndBatch(); |
58 void writeEndBatch(); |
|
59 |
|
60 /** |
|
61 * If an error occurs (e.g. lost connection during result set reading) this method will be |
|
62 * called even if there was no {@linkplain #writeEndBach()}. |
|
63 */ |
|
64 @Override |
|
65 void close() throws FormatterException; |
59 } |
66 } |