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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected YamlSerializer.LiquibaseRepresenter
getLiquibaseRepresenter
(org.yaml.snakeyaml.DumperOptions options) int
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
-
Constructor Details
-
YamlSnapshotSerializer
public YamlSnapshotSerializer()
-
-
Method Details
-
write
- Specified by:
write
in interfaceSnapshotSerializer
- Throws:
IOException
-
toMap
- 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
-