empire-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francis De Brabandere <franci...@gmail.com>
Subject DBDatabase.open()
Date Sun, 01 Mar 2009 20:22:30 GMT
Is that javadoc comment still valid as that referenced openDatabase
method does not exist in the driver and all examples use this method
top open a database.

     * Sets the database driver for this database. <br>
     * ------ DO NOT CALL DIRECTLY! ------- <br>
     * This function is called internally by {@link
DBDatabaseDriver#openDatabase(DBDatabase, Connection)}
     * @param driver the databae driver
     * @param conn the connection
     * @return true on succes
    public boolean open(DBDatabaseDriver driver, Connection conn)
        // Close Database if already open
        if (isOpen())
        // Attach to driver
        if (driver.attachDatabase(this, conn)==false)
            return error(driver);
        // set new driver
        this.driver = driver;
        return success();

Microsoft gives you windows, Linux gives you the whole house.

View raw message