liquibase-core/src/main/java/liquibase/snapshot/SnapshotControl.java
public boolean addType(Class<? extends DatabaseObject> type, Database database) {
        boolean added = this.types.add(type);
        if (added) {
            for (Class<? extends DatabaseObject> container : SnapshotGeneratorFactory.getInstance().getContainerTypes(type, database)) {
                addType(container, database);
            }
        }
        return added;
    }
public boolean addType(Class<? extends DatabaseObject> type, Database database) {
        boolean added = this.types.add(type);
        if (added) {
            for (Class<? extends DatabaseObject> container : SnapshotGeneratorFactory.getInstance().getContainerTypes(type, database)) {
                addType(container, database);
            }
        }
        return added;
    }
public boolean addType ( Class < ? extends DatabaseObject > type , Database database ) { boolean added = this . types . add ( type ) ; if ( added ) { for ( Class < ? extends DatabaseObject > container : SnapshotGeneratorFactory . getInstance ( ) . getContainerTypes ( type , database ) ) { addType ( container , database ) ; } } return added ; }
Adds a new DatabaseObject type to the list of object types to be included in snapshots.
@param type The type to be added
@param database The database to check for any dependent types that need to be included as well
@return true if the type was added to the list, false if it was already present.
Adds a new DatabaseObject type to the list of object types to be included in snapshots .