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 class
YamlSnapshotSerializer.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.LiquibaseRepresenter
getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options)
int
getPriority()
protected Object
toMap(LiquibaseSerializable object)
void
write(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:
write
in interfaceSnapshotSerializer
- Throws:
IOException
-
toMap
protected Object toMap(LiquibaseSerializable object)
- Overrides:
toMap
in classYamlSerializer
-
getLiquibaseRepresenter
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options)
- Overrides:
getLiquibaseRepresenter
in classYamlSerializer
-
getPriority
public int getPriority()
- Specified by:
getPriority
in interfacePrioritizedService
-
-