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 voidappend(ChangeSet changeSet, File changeLogFile)voidcreateChangeSetInfo(ChangeSet changeSet, StringBuilder builder)Create the changeSet header information and add it to the StringBuilderintgetPriority()protected DatabasegetTargetDatabase(ChangeSet changeSet)String[]getValidFileExtensions()Stringserialize(LiquibaseSerializable object, boolean pretty)<T extends ChangeLogChild>
voidwrite(List<T> children, OutputStream out)
-
-
-
Method Detail
-
getValidFileExtensions
public String[] getValidFileExtensions()
- Specified by:
getValidFileExtensionsin interfaceLiquibaseSerializer
-
serialize
public String serialize(LiquibaseSerializable object, boolean pretty)
- Specified by:
serializein 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:
writein interfaceChangeLogSerializer- Throws:
IOException
-
append
public void append(ChangeSet changeSet, File changeLogFile) throws IOException
- Specified by:
appendin interfaceChangeLogSerializer- Throws:
IOException
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacePrioritizedService
-
-