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
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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
EMPTY_MAP_DO_NOT_SERIALIZE, noSnapshotIdFound, yamlFields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected YamlSerializer.LiquibaseRepresentergetLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options) intprotected 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, serializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface liquibase.serializer.SnapshotSerializer
getValidFileExtensions, serialize
-
Constructor Details
-
YamlSnapshotSerializer
public YamlSnapshotSerializer()
-
-
Method Details
-
write
- Specified by:
writein interfaceSnapshotSerializer- Throws:
IOException
-
toMap
- Overrides:
toMapin classYamlSerializer
-
getLiquibaseRepresenter
protected YamlSerializer.LiquibaseRepresenter getLiquibaseRepresenter(org.yaml.snakeyaml.DumperOptions options) - Overrides:
getLiquibaseRepresenterin classYamlSerializer
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePrioritizedService
-