Package liquibase.snapshot.jvm
Class SchemaSnapshotGenerator
java.lang.Object
liquibase.snapshot.jvm.JdbcSnapshotGenerator
liquibase.snapshot.jvm.SchemaSnapshotGenerator
- All Implemented Interfaces:
SnapshotGenerator
- Direct Known Subclasses:
SchemaSnapshotGeneratorSnowflake
-
Field Summary
Fields inherited from interface liquibase.snapshot.SnapshotGenerator
PRIORITY_ADDITIONAL, PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NONE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) protected String[]getDatabaseSchemaNames(Database database) Fetches an array of Strings with the schema names in the database.protected DatabaseObjectsnapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) protected CatalogAndSchematoCatalogAndSchema(String tableSchema, Database database) Methods inherited from class liquibase.snapshot.jvm.JdbcSnapshotGenerator
addStatusListener, addsTo, cleanNameFromDatabase, getDatabaseCatalogNames, getPriority, replaces, shouldAddTo, snapshot, updateListeners
-
Constructor Details
-
SchemaSnapshotGenerator
public SchemaSnapshotGenerator()
-
-
Method Details
-
snapshotObject
protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
snapshotObjectin classJdbcSnapshotGenerator- Throws:
DatabaseExceptionInvalidExampleException
-
toCatalogAndSchema
-
addTo
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
addToin classJdbcSnapshotGenerator- Throws:
DatabaseExceptionInvalidExampleException
-
getDatabaseSchemaNames
Fetches an array of Strings with the schema names in the database.- Parameters:
database- The database from which to get the schema names- Returns:
- An array of schema name Strings (May be an empty array)
- Throws:
SQLException- propagated java.sql.SQLExceptionDatabaseException- if a different problem occurs during the DBMS-specific code
-