Top Constructors Methods
liquibase.snapshot.jvm

public Class SchemaSnapshotGeneratorSnowflake

extends SchemaSnapshotGenerator
Class Inheritance
Imports
liquibase.database.Database, liquibase.database.core.SnowflakeDatabase, liquibase.database.jvm.JdbcConnection, liquibase.exception.DatabaseException, liquibase.structure.DatabaseObject, liquibase.util.JdbcUtil, java.sql.ResultSet, .SQLException, java.util.ArrayList, .List

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected String[]
getDatabaseSchemaNames(Database
The database from which to get the schema names
database
)

Overrides liquibase.snapshot.jvm.SchemaSnapshotGenerator.getDatabaseSchemaNames.

Fetches an array of Strings with the schema names in the database.

public int
getPriority(Class<? extends DatabaseObject>
The object type we are asked to snapshot
objectType
,
Database
The DBMS for which the snapshotting should be done
database
)

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.getPriority.

Implements liquibase.snapshot.SnapshotGenerator.getPriority.

Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable.

Inherited from liquibase.snapshot.jvm.SchemaSnapshotGenerator:
addTosnapshotObjecttoCatalogAndSchema

Constructor Detail

SchemaSnapshotGeneratorSnowflakeback to summary
public SchemaSnapshotGeneratorSnowflake()

Method Detail

getDatabaseSchemaNamesback to summary
protected String[] getDatabaseSchemaNames(Database database) throws SQLException, DatabaseException

Overrides liquibase.snapshot.jvm.SchemaSnapshotGenerator.getDatabaseSchemaNames.

Doc from liquibase.snapshot.jvm.SchemaSnapshotGenerator.getDatabaseSchemaNames.

Fetches an array of Strings with the schema names in the database.

Parameters
database:Database

The database from which to get the schema names

Returns:String[]

An array of schema name Strings (May be an empty array)

Annotations
@Override
Exceptions
SQLException:
propagated java.sql.SQLException
DatabaseException:
if a different problem occurs during the DBMS-specific code
getPriorityback to summary
public int getPriority(Class<? extends DatabaseObject> objectType, Database database)

Overrides liquibase.snapshot.jvm.JdbcSnapshotGenerator.getPriority.

Implements liquibase.snapshot.SnapshotGenerator.getPriority.

Doc from liquibase.snapshot.SnapshotGenerator.getPriority.

Inquire if this SnapshotGenerator is capable of snapshotting objects of type objectType (e.g. Table, Index, View etc.) in the DBMS database (e.g. Oracle, Postgres, HyperSQL etc.) A return priority of > 0 will be interpreted as capable. The highest priority for an objectType-database combination wins.

Parameters
objectType:Class<? extends DatabaseObject>

The object type we are asked to snapshot

database:Database

The DBMS for which the snapshotting should be done

Returns:int

An integer of PRIORITY_... constants indicating our capability and willingness to snapshot

Annotations
@Override