| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot)
Implements abstract liquibase.
|
| protected String | getCacheKey(UniqueConstraint example, Database database)
Return the cache key for the given UniqueConstraint. |
| protected String | |
| 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. 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. |
| private String | Returns: A lengthy SQL statement that fetches the constraint names and columnsA database object of the InformixDatabase type database, Schema Name of the schema to examine (or null for all) schema, String Name of the constraint to examine (or null for all) name)Gets an SQL query that returns the constraint names and columns for all UNIQUE constraints. |
| protected boolean | includeTableNameInCacheKey(Database database)
Should the given database include the table name in the key? |
| protected List | |
| protected List | |
| private void | setValidateOptionIfAvailable(Database
- DB where UC will be created database, UniqueConstraint - UC object to persist validate option uniqueConstraint, Map<String, ?> - it's a cache-map to get metadata about UC columnsMetadata)Method to map 'validate' option for UC. |
| protected DatabaseObject | snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot)
Implements abstract liquibase.
|
| protected boolean | supportsBulkQuery(Database database)
To support bulk query, the resultSet must include a CONSTRAINT_CONTAINER column for caching purposes |
| UniqueConstraintSnapshotGenerator | back to summary |
|---|---|
| public UniqueConstraintSnapshotGenerator() | |
| addTo | back to summary |
|---|---|
| protected void addTo(DatabaseObject foundObject, DatabaseSnapshot snapshot) throws DatabaseException Implements abstract liquibase.
| |
| getCacheKey | back to summary |
|---|---|
| protected String getCacheKey(UniqueConstraint example, Database database) Return the cache key for the given UniqueConstraint. Must return the same result as | |
| getCacheKey | back to summary |
|---|---|
| protected String getCacheKey(Map<String, ?> row, Database database) Return the cache key for the given query row. Must return the same result as | |
| getPriority | back to summary |
|---|---|
| public int getPriority(Class<? extends DatabaseObject> objectType, Database database) Overrides liquibase. 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.
| |
| getUniqueConstraintsSqlInformix | back to summary |
|---|---|
| private String getUniqueConstraintsSqlInformix(InformixDatabase database, Schema schema, String name) Gets an SQL query that returns the constraint names and columns for all UNIQUE constraints.
| |
| includeTableNameInCacheKey | back to summary |
|---|---|
| protected boolean includeTableNameInCacheKey(Database database) Should the given database include the table name in the key? Databases that need to include the table names are ones where unique constraint names do not have to be unique within the schema. Currently only mysql is known to have non-unique constraint names.
If this returns true, the database-specific query in | |
| listColumns | back to summary |
|---|---|
| protected List | |
| listConstraints | back to summary |
|---|---|
| protected List | |
| setValidateOptionIfAvailable | back to summary |
|---|---|
| private void setValidateOptionIfAvailable(Database database, UniqueConstraint uniqueConstraint, Map<String, ?> columnsMetadata) Method to map 'validate' option for UC. This thing works only for ORACLE
| |
| snapshotObject | back to summary |
|---|---|
| protected DatabaseObject snapshotObject(DatabaseObject example, DatabaseSnapshot snapshot) throws DatabaseException Implements abstract liquibase.
| |
| supportsBulkQuery | back to summary |
|---|---|
| protected boolean supportsBulkQuery(Database database) To support bulk query, the resultSet must include a CONSTRAINT_CONTAINER column for caching purposes | |