Class DatabaseUtils


  • public class DatabaseUtils
    extends Object
    • Constructor Detail

      • DatabaseUtils

        public DatabaseUtils()
    • Method Detail

      • initializeDatabase

        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 - Catalog name and schema name are similar concepts. Used if defaultCatalogName is null.
        defaultSchemaName - Catalog name and schema name are similar concepts. Catalog is used with Oracle, DB2 and MySQL, and takes precedence over the schema name.
        database - Which Database object is affected by the initialization.
        Throws:
        DatabaseException