version 1.33, 2004/09/20 11:57:41
|
version 1.35, 2004/09/28 08:58:26
|
Line 653 public class DBBean
|
Line 653 public class DBBean
|
// if(resultSet.getObject(i)!=null) System.out.println(resultSet.getObject(i)); |
// if(resultSet.getObject(i)!=null) System.out.println(resultSet.getObject(i)); |
try |
try |
{ |
{ |
byte[] b = resultSet.getBytes(i); |
|
String utf8 = null; |
String utf8 = null; |
if (metaData instanceof ResultSetMetaDataExt) |
if (metaData instanceof ResultSetMetaDataExt) |
|
{ |
|
byte[] b = resultSet.getBytes(i); |
|
|
|
if (metaData instanceof ResultSetMetaDataExt) |
utf8 = (b == null) ? null : new String(b); |
utf8 = (b == null) ? null : new String(b); |
else |
else |
utf8 = (b == null) ? null : new String(b, "UTF-8"); |
utf8 = (b == null) ? null : new String(b, "UTF-8"); |
utf8 = (utf8 == null) ? null : new String(utf8.getBytes("UTF-8"), "UTF-8"); |
} |
|
else |
|
utf8=resultSet.getString(i); |
|
|
|
// utf8 = (utf8 == null) ? null : new String(utf8.getBytes("UTF-8"), "UTF-8"); |
tableRow.addElement(utf8); |
tableRow.addElement(utf8); |
|
|
} catch (Exception e) |
} catch (Exception e) |
{ |
{ |
System.out.println("Hey I Got an error" + e); |
System.out.println("Hey I Got an error" + e); |
|
e.printStackTrace(); |
} |
} |
m_columnClasses.addElement(java.lang.String.class); |
m_columnClasses.addElement(java.lang.String.class); |
} |
} |
Line 739 public class DBBean
|
Line 748 public class DBBean
|
stm.execute(query); |
stm.execute(query); |
long time2 = System.currentTimeMillis(); |
long time2 = System.currentTimeMillis(); |
|
|
// System.out.println("time to execute " + (time2 - time)); |
System.out.println("time to execute " + (time2 - time)); |
// stm.setMaxRows(numberOfHits); |
// stm.setMaxRows(numberOfHits); |
|
|
result = stm.getResultSet(); |
result = stm.getResultSet(); |