| Modifier and Type | Field and Description |
|---|---|
| private Class | |
| private final Class | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | JdbcSnapshotGenerator(Class<? extends DatabaseObject> defaultFor, Class<? extends DatabaseObject>[] addsTo)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public Class | addsTo()
Implements liquibase. When snapshotting a certain object type (e.g. a table), different types of objects might be discovered in the process. |
| protected abstract void | |
| protected String | |
| protected String[] | Returns: An array of catalog name Strings (May be an empty array)The database from which to get the schema names database)Fetches an array of Strings with the catalog 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)Implements liquibase. 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. |
| public Class | replaces()
Implements liquibase. Returns classes (and superclasses) that this SnapshotGenerator replaces. |
| protected boolean | |
| public DatabaseObject | snapshot(DatabaseObject
The object we should try to snapshot example, DatabaseSnapshot The Snapshot object representing the result of the snapshot operations so far snapshot, SnapshotGeneratorChain A list of other SnapshotGenerators that might be asked to try the same chain)Implements liquibase. Commands the SnapshotGenerator to create a snapshot (a representation of a database object in Java object form) of a specific database object. |
| protected abstract DatabaseObject | |
| protected void |
| addsTo | back to summary |
|---|---|
| private Class<? extends DatabaseObject>[] addsTo | |
| defaultFor | back to summary |
|---|---|
| private final Class<? extends DatabaseObject> defaultFor | |
| statusListeners | back to summary |
|---|---|
| private final Set<DiffStatusListener> statusListeners | |
| JdbcSnapshotGenerator | back to summary |
|---|---|
| protected JdbcSnapshotGenerator(Class<? extends DatabaseObject> defaultFor) | |
| JdbcSnapshotGenerator | back to summary |
|---|---|
| protected JdbcSnapshotGenerator(Class<? extends DatabaseObject> defaultFor, Class<? extends DatabaseObject>[] addsTo) | |
| addStatusListener | back to summary |
|---|---|
| public void addStatusListener(DiffStatusListener listener) | |
| addsTo | back to summary |
|---|---|
| public Class Implements liquibase. Doc from liquibase. When snapshotting a certain object type (e.g. a table), different types of objects might be discovered in the process. (TODO: Which ones? Needs a more precise description.)
| |
| addTo | back to summary |
|---|---|
| protected abstract void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException | |
| cleanNameFromDatabase | back to summary |
|---|---|
| protected String cleanNameFromDatabase(String objectName, Database database) | |
| getDatabaseCatalogNames | back to summary |
|---|---|
| protected String[] getDatabaseCatalogNames(Database database) throws SQLException, DatabaseException Fetches an array of Strings with the catalog names in the database.
| |
| getPriority | back to summary |
|---|---|
| public int getPriority(Class<? extends DatabaseObject> objectType, Database database) Implements liquibase. Doc from liquibase. 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.
| |
| replaces | back to summary |
|---|---|
| public Class Implements liquibase. Doc from liquibase. Returns classes (and superclasses) that this SnapshotGenerator replaces. Return null or empty array to not affect the SnapshotGeneratorChain.
| |
| shouldAddTo | back to summary |
|---|---|
| protected boolean shouldAddTo(Class<? extends DatabaseObject> databaseObjectType, DatabaseSnapshot snapshot) | |
| snapshot | back to summary |
|---|---|
| public DatabaseObject snapshot(DatabaseObject example, DatabaseSnapshot snapshot, SnapshotGeneratorChain chain) throws DatabaseException, InvalidExampleException Implements liquibase. Doc from liquibase. Commands the SnapshotGenerator to create a snapshot (a representation of a database object in Java object form) of a specific database object.
| |
| snapshotObject | back to summary |
|---|---|
| protected abstract DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException, InvalidExampleException | |
| updateListeners | back to summary |
|---|---|
| protected void updateListeners(String message) | |