193194195196197198199200201202203
java.util.Date date; if (key.isString()) date = rs.getTimestamp(key.toString()); else date = rs.getTimestamp((int) key.toNum()); return call.createDate(date.getTime()); } public static InputStream getAsciiStream(ResultSet rs, ESBase col)
206207208209210211212213214215216
ESBase key = col.toPrimitive(); if (key.isString()) return rs.getAsciiStream(key.toString()); else return rs.getAsciiStream((int) key.toNum()); } public static InputStream getUnicodeStream(ResultSet rs, ESBase col) throws Throwable {
217218219220221222223224225226227
ESBase key = col.toPrimitive(); if (key.isString()) return rs.getUnicodeStream(key.toString()); else return rs.getUnicodeStream((int) key.toNum()); } public static InputStream getBinaryStream(ResultSet rs, ESBase col) throws Throwable {
228229230231232233234235236237238
ESBase key = col.toPrimitive(); if (key.isString()) return rs.getBinaryStream(key.toString()); else return rs.getBinaryStream((int) key.toNum()); } public static Object getObject(ResultSet rs, ESBase col) throws Throwable {