Package liquibase.structure
Class DatabaseObjectCollection
java.lang.Object
liquibase.structure.DatabaseObjectCollection
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(DatabaseObject databaseObject) boolean
contains
(DatabaseObject wantedObject, CompareControl.SchemaComparison[] schemaComparisons) <DatabaseObjectType extends DatabaseObject>
DatabaseObjectTypeget
(DatabaseObjectType example, CompareControl.SchemaComparison[] schemaComparisons) Returns the object described by the passed example if it is already included in this snapshot.<DatabaseObjectType extends DatabaseObject>
Set<DatabaseObjectType>Returns all objects of the given type that are already included in this snapshot.getSerializableFieldType
(String field) getSerializableFieldValue
(String field) void
load
(ParsedNode parsedNode, ResourceAccessor resourceAccessor) Map<Class<? extends DatabaseObject>,
Set<? extends DatabaseObject>> toMap()
-
Constructor Details
-
DatabaseObjectCollection
-
-
Method Details
-
getSerializedObjectName
- Specified by:
getSerializedObjectName
in interfaceLiquibaseSerializable
-
getSerializedObjectNamespace
- Specified by:
getSerializedObjectNamespace
in interfaceLiquibaseSerializable
-
getSerializableFieldNamespace
- Specified by:
getSerializableFieldNamespace
in interfaceLiquibaseSerializable
-
getSerializableFields
- Specified by:
getSerializableFields
in interfaceLiquibaseSerializable
-
getSerializableFieldValue
- Specified by:
getSerializableFieldValue
in interfaceLiquibaseSerializable
-
getSerializableFieldType
- Specified by:
getSerializableFieldType
in interfaceLiquibaseSerializable
-
add
-
get
public <DatabaseObjectType extends DatabaseObject> DatabaseObjectType get(DatabaseObjectType example, CompareControl.SchemaComparison[] schemaComparisons) Returns the object described by the passed example if it is already included in this snapshot. -
get
public <DatabaseObjectType extends DatabaseObject> Set<DatabaseObjectType> get(Class<DatabaseObjectType> type) Returns all objects of the given type that are already included in this snapshot. -
contains
public boolean contains(DatabaseObject wantedObject, CompareControl.SchemaComparison[] schemaComparisons) -
load
public void load(ParsedNode parsedNode, ResourceAccessor resourceAccessor) throws ParsedNodeException - Specified by:
load
in interfaceLiquibaseSerializable
- Throws:
ParsedNodeException
-
serialize
- Specified by:
serialize
in interfaceLiquibaseSerializable
-
toMap
-