Class SnapshotControl

java.lang.Object
liquibase.snapshot.SnapshotControl
All Implemented Interfaces:
LiquibaseSerializable

public class SnapshotControl extends Object implements LiquibaseSerializable
Allows the class user to influence various aspects of the database object snapshot generation, e.g. what types of database objects they want.
  • Constructor Details

    • SnapshotControl

      public SnapshotControl(Database database)
      Create a SnapshotControl for a given database and mark the database's standard types for inclusion.
      Parameters:
      database - the DBMS for which snapshots should be generated
    • SnapshotControl

      @SafeVarargs public SnapshotControl(Database database, Class<? extends DatabaseObject>... types)
      Create a Snapshot control for a given database, but explicitly set the object types to be included in snapshots.
      Parameters:
      database - the DBMS for which snapshots should be generated
      types - the list of object types to be included in the snapshot
    • SnapshotControl

      @SafeVarargs public SnapshotControl(Database database, boolean expandTypesIfNeeded, Class<? extends DatabaseObject>... types)
    • SnapshotControl

      public SnapshotControl(Database database, String types)
      Create a Snapshot control for a given database, but explicitly set the object types to be included in snapshots.
      Parameters:
      database - the DBMS for which snapshots should be generated
      types - the list of object types to be included in the snapshot, separated by commas
    • SnapshotControl

      public SnapshotControl(Database database, ObjectChangeFilter objectChangeFilter, Class<? extends DatabaseObject>... types)
  • Method Details