liquibase.serializer.core.yaml
Class YamlSnapshotSerializer

java.lang.Object
  extended by liquibase.serializer.core.yaml.YamlSerializer
      extended by liquibase.serializer.core.yaml.YamlSnapshotSerializer
All Implemented Interfaces:
LiquibaseSerializer, SnapshotSerializer, PrioritizedService
Direct Known Subclasses:
JsonSnapshotSerializer

public class YamlSnapshotSerializer
extends YamlSerializer
implements SnapshotSerializer


Nested Class Summary
static class YamlSnapshotSerializer.SnapshotLiquibaseRepresenter
           
 
Nested classes/interfaces inherited from class liquibase.serializer.core.yaml.YamlSerializer
YamlSerializer.LiquibaseRepresenter
 
Field Summary
 
Fields inherited from class liquibase.serializer.core.yaml.YamlSerializer
yaml
 
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
 
Constructor Summary
YamlSnapshotSerializer()
           
 
Method Summary
protected  YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter()
           
 int getPriority()
           
protected  Object toMap(LiquibaseSerializable object)
           
 void write(DatabaseSnapshot snapshot, OutputStream out)
           
 
Methods inherited from class liquibase.serializer.core.yaml.YamlSerializer
createYaml, getComparator, getValidFileExtensions, isJson, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface liquibase.serializer.SnapshotSerializer
getValidFileExtensions, serialize
 

Constructor Detail

YamlSnapshotSerializer

public YamlSnapshotSerializer()
Method Detail

write

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

toMap

protected Object toMap(LiquibaseSerializable object)
Overrides:
toMap in class YamlSerializer

getLiquibaseRepresenter

protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter()
Overrides:
getLiquibaseRepresenter in class YamlSerializer

getPriority

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


Copyright © 2016 Liquibase.org. All rights reserved.