Class FormattedSqlChangeLogSerializer
- java.lang.Object
-
- liquibase.serializer.core.formattedsql.FormattedSqlChangeLogSerializer
-
- All Implemented Interfaces:
ChangeLogSerializer
,LiquibaseSerializer
,PrioritizedService
public class FormattedSqlChangeLogSerializer extends Object implements ChangeLogSerializer
-
-
Field Summary
-
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
-
Constructor Summary
Constructors Constructor Description FormattedSqlChangeLogSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(ChangeSet changeSet, File changeLogFile)
void
createChangeSetInfo(ChangeSet changeSet, StringBuilder builder)
Create the changeSet header information and add it to the StringBuilderint
getPriority()
protected Database
getTargetDatabase(ChangeSet changeSet)
String[]
getValidFileExtensions()
String
serialize(LiquibaseSerializable object, boolean pretty)
<T extends ChangeLogChild>
voidwrite(List<T> children, OutputStream out)
-
-
-
Method Detail
-
getValidFileExtensions
public String[] getValidFileExtensions()
- Specified by:
getValidFileExtensions
in interfaceLiquibaseSerializer
-
serialize
public String serialize(LiquibaseSerializable object, boolean pretty)
- Specified by:
serialize
in interfaceLiquibaseSerializer
-
createChangeSetInfo
public void createChangeSetInfo(ChangeSet changeSet, StringBuilder builder)
Create the changeSet header information and add it to the StringBuilder- Parameters:
changeSet
- The ChangeSet we are emittingbuilder
- The current StringBuilder we will add to
-
write
public <T extends ChangeLogChild> void write(List<T> children, OutputStream out) throws IOException
- Specified by:
write
in interfaceChangeLogSerializer
- Throws:
IOException
-
append
public void append(ChangeSet changeSet, File changeLogFile) throws IOException
- Specified by:
append
in interfaceChangeLogSerializer
- Throws:
IOException
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfacePrioritizedService
-
-