Package liquibase
Class CatalogAndSchema
- java.lang.Object
-
- liquibase.CatalogAndSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCatalogAndSchema.CatalogAndSchemaCase
-
Field Summary
Fields Modifier and Type Field Description static CatalogAndSchemaDEFAULT
-
Constructor Summary
Constructors Constructor Description CatalogAndSchema(String catalogName, String schemaName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CatalogAndSchemacustomize(Database accordingTo)Returns a new CatalogAndSchema object with null/default catalog and schema names set to the correct default catalog and schema.booleanequals(CatalogAndSchema catalogAndSchema, Database accordingTo)StringgetCatalogName()StringgetSchemaName()CatalogAndSchemastandardize(Database accordingTo)This method returns a new CatalogAndSchema adjusted based on the configuration of the passed database.StringtoString()String version includes both catalog and schema.
-
-
-
Field Detail
-
DEFAULT
public static final CatalogAndSchema DEFAULT
-
-
Method Detail
-
getCatalogName
public String getCatalogName()
-
getSchemaName
public String getSchemaName()
-
equals
public boolean equals(CatalogAndSchema catalogAndSchema, Database accordingTo)
-
standardize
public CatalogAndSchema standardize(Database accordingTo)
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(liquibase.database.Database)
-
customize
public CatalogAndSchema customize(Database accordingTo)
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:
standardize(liquibase.database.Database)
-
-