You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@empire-db.apache.org by Francis De Brabandere <fr...@gmail.com> on 2009/03/01 21:22:30 UTC
DBDatabase.open()
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())
close(conn);
// Attach to driver
if (driver.attachDatabase(this, conn)==false)
return error(driver);
// set new driver
this.driver = driver;
return success();
}
--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.
Re: DBDatabase.open()
Posted by Francis De Brabandere <fr...@gmail.com>.
fixed in svn revision 749398
On Mon, Mar 2, 2009 at 12:37 AM, Rainer Döbele <do...@esteam.de> wrote:
> Hi Francis,
>
> no obviously this comment is complete rubbish.
>
> As you can see this code has gone through some changes (but the comments have not).
>
> Regards
> Rainer
>
> Francis De Brabandere wrote:
>> re: DBDatabase.open()
>>
>> 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())
>> close(conn);
>> // Attach to driver
>> if (driver.attachDatabase(this, conn)==false)
>> return error(driver);
>> // set new driver
>> this.driver = driver;
>> return success();
>> }
>>
>> --
>> http://www.somatik.be
>> Microsoft gives you windows, Linux gives you the whole house.
>
--
http://www.somatik.be
Microsoft gives you windows, Linux gives you the whole house.
re: DBDatabase.open()
Posted by Rainer Döbele <do...@esteam.de>.
Hi Francis,
no obviously this comment is complete rubbish.
As you can see this code has gone through some changes (but the comments have not).
Regards
Rainer
Francis De Brabandere wrote:
> re: DBDatabase.open()
>
> 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())
> close(conn);
> // Attach to driver
> if (driver.attachDatabase(this, conn)==false)
> return error(driver);
> // set new driver
> this.driver = driver;
> return success();
> }
>
> --
> http://www.somatik.be
> Microsoft gives you windows, Linux gives you the whole house.