liquibase.serializer.core.string
Class StringSnapshotSerializerReadable

java.lang.Object
  extended by liquibase.serializer.core.string.StringSnapshotSerializerReadable
All Implemented Interfaces:
SnapshotSerializer, PrioritizedService

public class StringSnapshotSerializerReadable
extends Object
implements SnapshotSerializer


Field Summary
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
StringSnapshotSerializerReadable()
           
 
Method Summary
protected  void addDivider(StringBuilder buffer)
           
 int getPriority()
           
 String[] getValidFileExtensions()
           
protected  void outputObjects(List objects, Class type, StringBuilder catalogBuffer)
           
 String serialize(LiquibaseSerializable object, boolean pretty)
           
protected  boolean shouldExpandNestedObject(Object nestedValue, DatabaseObject container)
           
 void write(DatabaseSnapshot snapshot, OutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringSnapshotSerializerReadable

public StringSnapshotSerializerReadable()
Method Detail

getValidFileExtensions

public String[] getValidFileExtensions()
Specified by:
getValidFileExtensions in interface SnapshotSerializer

serialize

public String serialize(LiquibaseSerializable object,
                        boolean pretty)
Specified by:
serialize in interface SnapshotSerializer

outputObjects

protected void outputObjects(List objects,
                             Class type,
                             StringBuilder catalogBuffer)

shouldExpandNestedObject

protected boolean shouldExpandNestedObject(Object nestedValue,
                                           DatabaseObject container)

addDivider

protected void addDivider(StringBuilder buffer)

write

public void write(DatabaseSnapshot snapshot,
                  OutputStream out)
           throws IOException
Specified by:
write in interface SnapshotSerializer
Throws:
IOException

getPriority

public int getPriority()
Specified by:
getPriority in interface PrioritizedService


Copyright © 2016 Liquibase.org. All rights reserved.