Package liquibase.serializer
Class AbstractLiquibaseSerializable
- java.lang.Object
-
- liquibase.serializer.AbstractLiquibaseSerializable
-
- All Implemented Interfaces:
LiquibaseSerializable
- Direct Known Subclasses:
AbstractChangeVisitor
,AbstractPrecondition
,ChangeLogInclude
,ChangeLogIncludeAll
,ChangeLogProperty
,Column.AutoIncrementInformation
,ColumnConfig
,ConstraintsConfig
,DataType
,Difference
,RollbackContainer
public abstract class AbstractLiquibaseSerializable extends Object implements LiquibaseSerializable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface liquibase.serializer.LiquibaseSerializable
LiquibaseSerializable.SerializationType
-
-
Field Summary
-
Fields inherited from interface liquibase.serializer.LiquibaseSerializable
GENERIC_CHANGELOG_EXTENSION_NAMESPACE, GENERIC_SNAPSHOT_EXTENSION_NAMESPACE, STANDARD_CHANGELOG_NAMESPACE, STANDARD_SNAPSHOT_NAMESPACE
-
-
Constructor Summary
Constructors Constructor Description AbstractLiquibaseSerializable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
convertEscaped(Object value)
protected Class
getSerializableFieldDataTypeClass(String field)
protected Type[]
getSerializableFieldDataTypeClassParameters(String field)
String
getSerializableFieldNamespace(String field)
Set<String>
getSerializableFields()
LiquibaseSerializable.SerializationType
getSerializableFieldType(String field)
Object
getSerializableFieldValue(String field)
void
load(ParsedNode parsedNode, ResourceAccessor resourceAccessor)
ParsedNode
serialize()
protected Object
serializeValue(Object value)
protected void
setSerializableFieldValue(String field, Object value)
protected boolean
shouldAutoLoad(ParsedNode node)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface liquibase.serializer.LiquibaseSerializable
getSerializedObjectName, getSerializedObjectNamespace
-
-
-
-
Method Detail
-
load
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException
- Specified by:
load
in interfaceLiquibaseSerializable
- Throws:
ParsedNodeException
-
shouldAutoLoad
protected boolean shouldAutoLoad(ParsedNode node)
-
serialize
public ParsedNode serialize() throws ParsedNodeException
- Specified by:
serialize
in interfaceLiquibaseSerializable
- Throws:
ParsedNodeException
-
getSerializableFields
public Set<String> getSerializableFields()
- Specified by:
getSerializableFields
in interfaceLiquibaseSerializable
-
getSerializableFieldValue
public Object getSerializableFieldValue(String field)
- Specified by:
getSerializableFieldValue
in interfaceLiquibaseSerializable
-
getSerializableFieldType
public LiquibaseSerializable.SerializationType getSerializableFieldType(String field)
- Specified by:
getSerializableFieldType
in interfaceLiquibaseSerializable
-
getSerializableFieldDataTypeClassParameters
protected Type[] getSerializableFieldDataTypeClassParameters(String field)
-
serializeValue
protected Object serializeValue(Object value) throws ParsedNodeException
- Throws:
ParsedNodeException
-
getSerializableFieldNamespace
public String getSerializableFieldNamespace(String field)
- Specified by:
getSerializableFieldNamespace
in interfaceLiquibaseSerializable
-
-