On Wednesday 28 December 2005 16:22, Claus Stie Kallesøe wrote:
>  I have been reading through the cdk library here:
> http://cdk.sourceforge.net/api/
>
>  in order to find out how I can use the library.
>
>  As we use a MySql database to store the structures I wanted to use the
> DBReader.class as the describtion tells me: " Reader that can read from a
> relational database that can be  accessed through JDBC."
>
>  But I can't fint the class in the cdk-20050826.jar file I have?

The DBReader, DBWriter and DBAdmin classes are in the CDK module 'orphaned', 
meaning that no one was maintaining them, and they did not seemed to be used.

The sources, however, can be found in CVS at:

http://cvs.sourceforge.net/viewcvs.py/cdk/cdk/src/org/openscience/cdk/database/

>  Under org.openscience.cdk.database I only see the XindiceReader.
>
>  Can you tell me where I can find the DBReader?

Note, that the DBReader and DBWriter is closely tied together, and store the 
molecules CML string in the 'molecules' table:

ps = con.prepareStatement("INSERT INTO molecules VALUES('', ?)");

This does likely not match the setup you are working with.

Nevertheless, the source should give you some insight in how I used MySQL in 
the past.

Egon

-- 
[EMAIL PROTECTED]
Blog: http://chem-bla-ics.blogspot.com/
GPG: 1024D/D6336BA6


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Cdk-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cdk-user

Reply via email to