debugging java stored procedures

2010-03-08 Thread Thomas
Hi,

I need to come back to this subject after many hours of trying to get this to 
run over the weekend

I have followed Bryan's advice to my previous post (some weeks ago) and moved 
to an embedded database scenario as suggested as this was supposed to remove 
the complexity involved when trying to debug in a network server environment. 

However, I was still not able to actually step into the stored procedure code
for debugging as Eclipse always tells me it can't find the source path to the 
code.

Using an embedded data base have tried to just step through the code of a 
procedure that does work perfectly fine. The debugging works well up to 
the point where the callable statement is executed and where I would need
to step into this call for further debugging. 

I have tried two approaches:
1) stepping through when the corresponding code resides on the filesystem 
2) stepping through after loading the jar file into the data base.

In both cases the debugger doesn't show the source as it tells me it can not 
find the path to the source code (even if I include the jar as external jar
or if I include the folder on the filesystem which holds the class into the 
eclipse classpath)

Help would be really be appreciated as being able to use the debugger 
would be a dramatic help and improvement for me.

Thanks
Thanks



Extracting dependencies from SQL statements

2010-03-08 Thread Pavel Bortnovskiy
Hello:

is it possible to use Derby's SQL parser to extract dependencies from a 
given SQL statement?
(or access the parser once the statement has been parsed).

Whether it's a simple SELECT or a JOIN, UNION or a more complex statement, 
I would like to get a list of tables that this statement would depend on.
Looking for FROM clauses and attempting to do the parsing myself seems 
like a difficult, error prone and impractical way to approach this.

Any suggestions, please?

Thanks,
Pavel.




Jefferies archives and monitors outgoing and incoming e-mail. The contents of 
this email, including any attachments, are confidential to the ordinary user of 
the email address to which it was addressed. If you are not the addressee of 
this email you may not copy, forward, disclose or otherwise use it or any part 
of it in any form whatsoever. This email may be produced at the request of 
regulators or in connection with civil litigation. Jefferies accepts no 
liability for any errors or omissions arising as a result of transmission. Use 
by other than intended recipients is prohibited.  In the United Kingdom, 
Jefferies operates as Jefferies International Limited; registered in England: 
no. 1978621; registered office: Vintners Place, 68 Upper Thames Street, London 
EC4V 3BJ.  Jefferies International Limited is authorised and regulated by the 
Financial Services Authority.