public class SchemaSnapshotGenerator extends JdbcSnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE
Constructor and Description |
---|
SchemaSnapshotGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addTo(DatabaseObject foundObject,
DatabaseSnapshot snapshot) |
protected String[] |
getDatabaseSchemaNames(Database database)
Fetches an array of Strings with the schema names in the database.
|
protected DatabaseObject |
snapshotObject(DatabaseObject example,
DatabaseSnapshot snapshot) |
protected CatalogAndSchema |
toCatalogAndSchema(String tableSchema,
Database database) |
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
snapshotObject
in class JdbcSnapshotGenerator
DatabaseException
InvalidExampleException
protected CatalogAndSchema toCatalogAndSchema(String tableSchema, Database database)
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException
addTo
in class JdbcSnapshotGenerator
DatabaseException
InvalidExampleException
protected String[] getDatabaseSchemaNames(Database database) throws SQLException, DatabaseException
database
- The database from which to get the schema namesSQLException
- propagated java.sql.SQLExceptionDatabaseException
- if a different problem occurs during the DBMS-specific codeCopyright © 2023 Liquibase.org. All rights reserved.