1 | |
package liquibase.serializer; |
2 | |
|
3 | |
import liquibase.change.Change; |
4 | |
import liquibase.change.ColumnConfig; |
5 | |
import liquibase.changelog.ChangeSet; |
6 | |
import liquibase.changelog.DatabaseChangeLog; |
7 | |
import liquibase.sql.visitor.SqlVisitor; |
8 | |
|
9 | |
import java.io.OutputStream; |
10 | |
import java.io.IOException; |
11 | |
import java.util.List; |
12 | |
|
13 | |
public interface ChangeLogSerializer { |
14 | |
|
15 | |
String[] getValidFileExtensions(); |
16 | |
|
17 | |
String serialize(DatabaseChangeLog databaseChangeLog); |
18 | |
|
19 | |
String serialize(ChangeSet changeSet); |
20 | |
|
21 | |
String serialize(Change change); |
22 | |
|
23 | |
String serialize(SqlVisitor visitor); |
24 | |
|
25 | |
String serialize(ColumnConfig columnConfig); |
26 | |
|
27 | |
void write(List<ChangeSet> changeSets, OutputStream out) throws IOException; |
28 | |
} |