DRIVER

Monday, 22 February 2010 · 2 messages
I
ispanico87_nf22 Feb 2010 15:56 #
Hi, static final String DRIVER ="org.basex.api.xqj.BXQDataSource"; Why use the class org.basex.api.xqj.BXQDataSource??? In JDBC driver is associated with a database. Why in XQJ I use a class??? Sorry for my English...i'm Italian.
CG
Christian Grün22 Feb 2010 16:43 #
Quoted text · ispanico87_nf · 4 lines
> static final String DRIVER ="org.basex.api.xqj.BXQDataSource"; > Why use the class org.basex.api.xqj.BXQDataSource??? > In JDBC driver is associated with a database. > Why in XQJ I use a class???
In JDBC you're as well referencing the driver implementation. This is how you instantiate e.g. MySQL with JDBC: Class.forName("com.mysql.jdbc.Driver").newInstance(); Regards, Christian ___________________________ Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen

⚡Generated with XQuery