All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.snapshot.jvm.ColumnSnapshotGeneratorPostgres Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
package liquibase.snapshot.jvm;

import liquibase.database.Database;
import liquibase.database.core.PostgresDatabase;
import liquibase.snapshot.SnapshotGenerator;
import liquibase.structure.DatabaseObject;

/**
 * Implements the PostgreSQL-specific parts of column snapshotting.
 */
public class ColumnSnapshotGeneratorPostgres extends ColumnSnapshotGenerator {

    @Override
    public int getPriority(Class objectType, Database database) {
        if (database instanceof PostgresDatabase)
            return PRIORITY_DATABASE;
        else
            return PRIORITY_NONE; // Other DB? Let the generic handler do it.
    }

    @Override
    public Class[] replaces() {
        return new Class[]{ColumnSnapshotGenerator.class};
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy