1 5 package com.teamkonzept.lib; 6 7 import java.sql.*; 8 9 14 public class TKDBObjectCreator { 15 16 24 public static Object getResultObject( ResultSet rs, int idx, int resultType ) 25 { 26 try { 27 String result = rs.getString(idx); 28 if( result == null ) return ""; 29 return result; 30 } 31 catch (SQLException ex) { 32 TKDBLogger.logSQLException( ex ); 33 } 34 return null; 35 } 36 } 37 38 | Popular Tags |