author | František Kučera <franta-hg@frantovo.cz> |
Fri, 20 Dec 2013 22:01:06 +0100 | |
branch | v_0 |
changeset 22 | 37fe883f8410 |
child 29 | d66858b4b563 |
permissions | -rw-r--r-- |
22
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
1 |
/** |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
2 |
* SQL-DK |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
3 |
* Copyright © 2013 František Kučera (frantovo.cz) |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
4 |
* |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
5 |
* This program is free software: you can redistribute it and/or modify |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
6 |
* it under the terms of the GNU General Public License as published by |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
7 |
* the Free Software Foundation, either version 3 of the License, or |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
8 |
* (at your option) any later version. |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
9 |
* |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
10 |
* This program is distributed in the hope that it will be useful, |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
13 |
* GNU General Public License for more details. |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
14 |
* |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
16 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
17 |
*/ |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
18 |
package info.globalcode.sql.dk.formatting; |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
19 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
20 |
import info.globalcode.sql.dk.Parameter; |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
21 |
import java.util.List; |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
22 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
23 |
/** |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
24 |
* |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
25 |
* @author Ing. František Kučera (frantovo.cz) |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
26 |
*/ |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
27 |
public interface Formatter { |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
28 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
29 |
void writeStartDatabase(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
30 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
31 |
void writeEndDatabase(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
32 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
33 |
void writeStartResultSet(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
34 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
35 |
void writeEndResultSet(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
36 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
37 |
void writeQuery(String sql); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
38 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
39 |
void writeParameters(List<Parameter> parameters); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
40 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
41 |
void writeColumnsHeader(ColumnsHeader header); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
42 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
43 |
void writeStartRow(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
44 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
45 |
void writeColumnValue(Object value); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
46 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
47 |
void writeEndRow(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
48 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
49 |
void writeStartUpdatesResult(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
50 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
51 |
void writeUpdatedRowsCount(int updatedRowsCount); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
52 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
53 |
void writeStartGeneratedKeys(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
54 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
55 |
void writeEndGeneratedKeys(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
56 |
|
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
57 |
void writeEndUpdatesResult(); |
37fe883f8410
formatter: interface and abstract class
František Kučera <franta-hg@frantovo.cz>
parents:
diff
changeset
|
58 |
} |