Package liquibase.serializer.core.string
Class StringSnapshotSerializerReadable
java.lang.Object
liquibase.serializer.core.string.StringSnapshotSerializerReadable
- All Implemented Interfaces:
SnapshotSerializer
,PrioritizedService
-
Field Summary
Fields inherited from interface liquibase.servicelocator.PrioritizedService
COMPARATOR, PRIORITY_DATABASE, PRIORITY_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDivider
(StringBuilder buffer) We need this method with protected access modifier to be able to extend this set from PRO and/or from extensions.int
We need this method with protected access modifier to be able to extend this set from PRO and/or from extensions.String[]
protected void
outputObjects
(List objects, Class type, StringBuilder catalogBuffer) serialize
(LiquibaseSerializable object, boolean pretty) protected boolean
shouldExpandNestedObject
(DatabaseObject container) void
write
(DatabaseSnapshot snapshot, OutputStream out)
-
Constructor Details
-
StringSnapshotSerializerReadable
public StringSnapshotSerializerReadable()
-
-
Method Details
-
getValidFileExtensions
- Specified by:
getValidFileExtensions
in interfaceSnapshotSerializer
-
serialize
- Specified by:
serialize
in interfaceSnapshotSerializer
-
getSkipDisplayingTypes
We need this method with protected access modifier to be able to extend this set from PRO and/or from extensions. These types should not be displayed as they are either processed separately likeCatalog
andSchema
, or they are inner entities of the types-containers likeColumn
-s toTable
-s andView
-s -
outputObjects
-
shouldExpandNestedObject
-
getExpandNestedTypes
We need this method with protected access modifier to be able to extend this set from PRO and/or from extensions. These types should not be process like regularDatabaseObject
-s as their full structure meters. Usually these types are type-containers likeTable
andView
. -
addDivider
-
write
- Specified by:
write
in interfaceSnapshotSerializer
- Throws:
IOException
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfacePrioritizedService
-