public void updateDatabase(String pool) {

        Map<String, String> dbPoolData = new HashMap<String, String>(m_dbPools.get(pool));

        // display info
        System.out.println("JDBC Driver:                " + getDbDriver(pool));
        System.out.println("JDBC Connection Url:        " + getDbUrl(pool));
        System.out.println("JDBC Connection Url Params: " + getDbParams(pool));
        System.out.println("Database User:              " + getDbUser(pool));

        // get the db implementation name
        String dbName = getDbName();
        String name = null;
        if (dbName.indexOf("mysql") > -1) {
            getMySqlEngine(dbPoolData);
            name = "mysql";
        } else if (dbName.indexOf("oracle") > -1) {
            getOracleTablespaces(dbPoolData);
            name = "oracle";
        } else if (dbName.indexOf("postgresql") > -1) {
            getPostgreSqlTablespaces(dbPoolData);
            name = "postgresql";
        } else {
            System.out.println("db " + dbName + " not supported");
            return;
        }

        // execute update
        Iterator<I_CmsUpdateDBPart> it = m_plugins.iterator();
        while (it.hasNext()) {
            I_CmsUpdateDBPart updatePart = it.next();
            I_CmsUpdateDBPart dbUpdater = getInstanceForDb(updatePart, name);
            if (dbUpdater != null) {
                dbUpdater.execute(dbPoolData);
            }
        }
    }
public void updateDatabase ( String pool ) { Map < String , String > dbPoolData = new HashMap < String , String > ( m_dbPools . get ( pool ) ) ; System . out . println ( "JDBC Driver:                " + getDbDriver ( pool ) ) ; System . out . println ( "JDBC Connection Url:        " + getDbUrl ( pool ) ) ; System . out . println ( "JDBC Connection Url Params: " + getDbParams ( pool ) ) ; System . out . println ( "Database User:              " + getDbUser ( pool ) ) ; String dbName = getDbName ( ) ; String name = null ; if ( dbName . indexOf ( "mysql" ) > - 1 ) { getMySqlEngine ( dbPoolData ) ; name = "mysql" ; } else if ( dbName . indexOf ( "oracle" ) > - 1 ) { getOracleTablespaces ( dbPoolData ) ; name = "oracle" ; } else if ( dbName . indexOf ( "postgresql" ) > - 1 ) { getPostgreSqlTablespaces ( dbPoolData ) ; name = "postgresql" ; } else { System . out . println ( "db " + dbName + " not supported" ) ; return ; } Iterator < I_CmsUpdateDBPart > it = m_plugins . iterator ( ) ; while ( it . hasNext ( ) ) { I_CmsUpdateDBPart updatePart = it . next ( ) ; I_CmsUpdateDBPart dbUpdater = getInstanceForDb ( updatePart , name ) ; if ( dbUpdater != null ) { dbUpdater . execute ( dbPoolData ) ; } } }
Updates the database.<p>

@param pool the database pool to update