version 1.11, 2004/03/23 11:57:06
|
version 1.12, 2004/04/05 10:14:01
|
Line 665 public class DBBean
|
Line 665 public class DBBean
|
|
|
if (!connection.isClosed()) |
if (!connection.isClosed()) |
stm = connection.createStatement(); |
stm = connection.createStatement(); |
|
else { |
|
|
|
|
|
try |
|
{ |
|
connection = getConnection(); |
|
stm= connection.createStatement(); |
|
} catch (Exception e) |
|
{ |
|
// TODO Auto-generated catch block |
|
e.printStackTrace(); |
|
} |
|
} |
stm.setMaxRows(numberOfHits); |
stm.setMaxRows(numberOfHits); |
long time = System.currentTimeMillis(); |
long time = System.currentTimeMillis(); |
stm.execute(query); |
stm.execute(query); |