1 |
|
package liquibase.dbdoc; |
2 |
|
|
3 |
|
import liquibase.change.Change; |
4 |
|
import liquibase.database.Database; |
5 |
|
import liquibase.exception.DatabaseException; |
6 |
|
import liquibase.exception.DatabaseHistoryException; |
7 |
|
|
8 |
|
import java.io.File; |
9 |
|
import java.io.FileWriter; |
10 |
|
import java.io.IOException; |
11 |
|
import java.util.List; |
12 |
|
|
|
|
| 0% |
Uncovered Elements: 8 (8) |
Complexity: 4 |
Complexity Density: 1 |
|
13 |
|
public class RecentChangesWriter extends HTMLWriter { |
14 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
15 |
0
|
public RecentChangesWriter(File rootOutputDir, Database database) {... |
16 |
0
|
super(new File(rootOutputDir, "recent"), database); |
17 |
|
} |
18 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
19 |
0
|
@Override... |
20 |
|
protected String createTitle(Object object) { |
21 |
0
|
return "Recent Changes"; |
22 |
|
} |
23 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
24 |
0
|
@Override... |
25 |
|
protected void writeBody(FileWriter fileWriter, Object object, List<Change> ranChanges, List<Change> changesToRun) |
26 |
|
throws IOException, DatabaseHistoryException, DatabaseException { |
27 |
0
|
writeCustomHTML(fileWriter, object, ranChanges, database); |
28 |
0
|
writeChanges("Most Recent Changes", fileWriter, ranChanges); |
29 |
|
} |
30 |
|
|
|
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
31 |
0
|
@Override... |
32 |
|
protected void writeCustomHTML(FileWriter fileWriter, Object object, List<Change> changes, Database database) |
33 |
|
throws IOException { |
34 |
|
} |
35 |
|
} |