You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Thomas Fox <Th...@seitenbau.net> on 2012/06/27 04:39:03 UTC

change the class name of the DB interface to Adapter ?

Currently, the word "Database" is quite overloaded in Torque. It means the
name of the database (as in Torque.getDefaultDB()) as well as the
information about a particular database (as in the class Database).
To add to the confusion, there is also the class name
org.apache.torque.adapter.DB which holds the interface for a database
adaptor for the runtime.
I'd propose to resolve that confusion by changing that class name to
"Adapter".
Also, deprecate all methods to retrieve an adapter but are named "DB" (as
in Torque.getDB()); and add new methods which are named "Adapter" (as
Torque.getAdapter()).

Any objections, comments, suggestions ?

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


RE: change the class name of the DB interface to Adapter ?

Posted by Greg Monroe <Gr...@dukece.com>.
+1

-----Original Message-----
From: Thomas Fox [mailto:Thomas.Fox@seitenbau.net] 
Sent: Tuesday, June 26, 2012 10:39 PM
To: torque-dev@db.apache.org
Subject: change the class name of the DB interface to Adapter ?


Currently, the word "Database" is quite overloaded in Torque. It means the name of the database (as in Torque.getDefaultDB()) as well as the information about a particular database (as in the class Database).
To add to the confusion, there is also the class name org.apache.torque.adapter.DB which holds the interface for a database adaptor for the runtime.
I'd propose to resolve that confusion by changing that class name to "Adapter".
Also, deprecate all methods to retrieve an adapter but are named "DB" (as in Torque.getDB()); and add new methods which are named "Adapter" (as Torque.getAdapter()).

Any objections, comments, suggestions ?

    Thomas


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

DukeCE Privacy Statement:
Please be advised that this e-mail and any files transmitted with
it are confidential communication or may otherwise be privileged or
confidential and are intended solely for the individual or entity
to whom they are addressed. If you are not the intended recipient
you may not rely on the contents of this email or any attachments,
and we ask that you please not read, copy or retransmit this
communication, but reply to the sender and destroy the email, its
contents, and all copies thereof immediately. Any unauthorized
dissemination, distribution or copying of this communication is
strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org