MultipleThread « JDBC « Java Database Q&A





1. Is this use of PreparedStatements in a Thread in Java correct?    stackoverflow.com

I'm still an undergrad just working part time and so I'm always trying to be aware of better ways to do things. Recently I had to write a program for work ...

2. How to access a PreparedStatement in a multi-thread-environment?    stackoverflow.com

I'm using plain-JDBC-Database-Access in a multithreaded environment. An exception I recently got when working with PreparedStatements (the Oracle flavour) made me aware of the fact, that they are not threadsafe. There ...

3. How to generate PreparedStatements in a multi-thread-environment?    stackoverflow.com

I've had a working version of multi-threaded code, however I was unsatisfied with my PreparedStatement-wrapperclass being non-threadsafe. So I decided to generate the PreparedStatements in a ThreadLocal to make the wrapper ...