liquibase.structure
Class DatabaseObjectCollection

java.lang.Object
  extended by liquibase.structure.DatabaseObjectCollection
All Implemented Interfaces:
LiquibaseSerializable

public class DatabaseObjectCollection
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
DatabaseObjectCollection(Database database)
           
 
Method Summary
 void add(DatabaseObject databaseObject)
           
 boolean contains(DatabaseObject wantedObject)
           
<DatabaseObjectType extends DatabaseObject>
Set<DatabaseObjectType>
get(Class<DatabaseObjectType> type)
          Returns all objects of the given type that are already included in this snapshot.
<DatabaseObjectType extends DatabaseObject>
DatabaseObjectType
get(DatabaseObjectType example)
          Returns the object described by the passed example if it is already included in this snapshot.
 Set<String> getSerializableFields()
           
 LiquibaseSerializable.SerializationType getSerializableFieldType(String field)
           
 Object getSerializableFieldValue(String field)
           
 String getSerializedObjectName()
           
 String getSerializedObjectNamespace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseObjectCollection

public DatabaseObjectCollection(Database database)
Method Detail

getSerializedObjectName

public String getSerializedObjectName()
Specified by:
getSerializedObjectName in interface LiquibaseSerializable

getSerializedObjectNamespace

public String getSerializedObjectNamespace()
Specified by:
getSerializedObjectNamespace in interface LiquibaseSerializable

getSerializableFields

public Set<String> getSerializableFields()
Specified by:
getSerializableFields in interface LiquibaseSerializable

getSerializableFieldValue

public Object getSerializableFieldValue(String field)
Specified by:
getSerializableFieldValue in interface LiquibaseSerializable

getSerializableFieldType

public LiquibaseSerializable.SerializationType getSerializableFieldType(String field)
Specified by:
getSerializableFieldType in interface LiquibaseSerializable

add

public void add(DatabaseObject databaseObject)

get

public <DatabaseObjectType extends DatabaseObject> DatabaseObjectType get(DatabaseObjectType example)
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)


Copyright © 2014 Liquibase.org. All Rights Reserved.