Package liquibase
Class CatalogAndSchema
java.lang.Object
liquibase.CatalogAndSchema
Object representing a database catalog and schema. This differs from
Schema
in that it has
not come from an actual database Schema.
A null value for catalogName or schemaName signifies the default catalog/schema.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new CatalogAndSchema object with null/default catalog and schema names set to the correct default catalog and schema.boolean
equals
(CatalogAndSchema catalogAndSchema, Database accordingTo) standardize
(Database accordingTo) This method returns a new CatalogAndSchema adjusted based on the configuration of the passed database.toString()
String version includes both catalog and schema.
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
CatalogAndSchema
-
-
Method Details
-
equals
-
standardize
This method returns a new CatalogAndSchema adjusted based on the configuration of the passed database. If the database does not support schemas, the returned object will have a null schema. If the database does not support catalogs, the returned object will have a null catalog. If either the schema or catalog matches the database default catalog or schema, they will be nulled out. Catalog and/or schema names will be upper case unless the database violates the SQL standard by being case-sensitive about some or all unquoted identifiers.- See Also:
-
customize
Returns a new CatalogAndSchema object with null/default catalog and schema names set to the correct default catalog and schema. If the database does not support catalogs or schemas they will retain a null value. Catalog and schema capitalization will match what the database expects.- See Also:
-
toString
String version includes both catalog and schema. If either is null it returns the string "DEFAULT" in its place.
-