Top Constructors Methods
liquibase.database.core

public Class DatabaseUtils

extends Object
Class Inheritance
Imports
liquibase.GlobalConfiguration, .Scope, liquibase.database.Database, .OfflineConnection, liquibase.exception.DatabaseException, liquibase.executor.Executor, .ExecutorService, liquibase.statement.core.RawSqlStatement, liquibase.structure.core.Schema, liquibase.util.StringUtil

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
initializeDatabase(String
Catalog name and schema name are similar concepts. Used if defaultCatalogName is null.
defaultCatalogName
,
String
Catalog name and schema name are similar concepts. Catalog is used with Oracle, DB2 and MySQL, and takes precedence over the schema name.
defaultSchemaName
,
Database
Which Database object is affected by the initialization.
database
)

Executes RawSqlStatements particular to each database engine to set the default schema for the given Database

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DatabaseUtilsback to summary
public DatabaseUtils()

Method Detail

initializeDatabaseback to summary
public static void initializeDatabase(String defaultCatalogName, String defaultSchemaName, Database database) throws DatabaseException

Executes RawSqlStatements particular to each database engine to set the default schema for the given Database

Parameters
defaultCatalogName:String

Catalog name and schema name are similar concepts. Used if defaultCatalogName is null.

defaultSchemaName:String

Catalog name and schema name are similar concepts. Catalog is used with Oracle, DB2 and MySQL, and takes precedence over the schema name.

database:Database

Which Database object is affected by the initialization.