public void putValue(int idx, Object ov) { String n = belongToDT.getColumnName(idx); if (n == null) throw new RuntimeException("no coloumn found with index=" + idx); if (ov != null) { if ((ov instanceof java.util.Date) && !(ov instanceof java.sql.Timestamp)) { ov = new java.sql.Timestamp(((java.util.Date) ov).getTime()); } this.put(n, ov); } else this.remove(n); }
public Object getValue(int idx) { String n = belongToDT.getColumnName(idx); if (n == null) return null; return this.get(n); }