Y
yasaswi
In the mysql database I have, after I get some values from 3 tables, I
have to get few more values from other tables, based on the values I
obtained in the first run. In a case like this, can I pass the
java.sql.Connection as a variable, between my methods.
In other words, can I dedicate each method to go and fetch some
specific data from the mysql database. I am using a DBCP connection
pool, but still, instead of using a new Connection in each method, can
a pass a java.sql.Connection to the methods?
Thanks,
Yasaswi
have to get few more values from other tables, based on the values I
obtained in the first run. In a case like this, can I pass the
java.sql.Connection as a variable, between my methods.
In other words, can I dedicate each method to go and fetch some
specific data from the mysql database. I am using a DBCP connection
pool, but still, instead of using a new Connection in each method, can
a pass a java.sql.Connection to the methods?
Thanks,
Yasaswi