Package liquibase.serializer.core.yaml
Class YamlSnapshotSerializer
- java.lang.Object
-
- liquibase.serializer.core.yaml.YamlSerializer
-
- 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
Nested Classes Modifier and Type Class Description static classYamlSnapshotSerializer.SnapshotLiquibaseRepresenter-
Nested classes/interfaces inherited from class liquibase.serializer.core.yaml.YamlSerializer
YamlSerializer.LiquibaseRepresenter, YamlSerializer.LiquibaseResolver
-
-
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
Constructors Constructor Description YamlSnapshotSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected YamlSerializer.LiquibaseRepresentergetLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options)intgetPriority()protected ObjecttoMap(LiquibaseSerializable object)voidwrite(DatabaseSnapshot snapshot, OutputStream out)-
Methods inherited from class liquibase.serializer.core.yaml.YamlSerializer
convertToMap, createDumperOptions, createYaml, getComparator, getLiquibaseResolver, getSerializableObjectFields, getValidFileExtensions, isJson, removeClassTypeMarksFromSerializedJson, 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
-
-
-
-
Method Detail
-
write
public void write(DatabaseSnapshot snapshot, OutputStream out) throws IOException
- Specified by:
writein interfaceSnapshotSerializer- Throws:
IOException
-
toMap
protected Object toMap(LiquibaseSerializable object)
- Overrides:
toMapin classYamlSerializer
-
getLiquibaseRepresenter
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options)
- Overrides:
getLiquibaseRepresenterin classYamlSerializer
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfacePrioritizedService
-
-