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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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:
snapshotObject
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
InvalidExampleException
-
toCatalogAndSchema
-
addTo
protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException - Specified by:
addTo
in classJdbcSnapshotGenerator
- Throws:
DatabaseException
InvalidExampleException
-
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
-