Ejemplo n.º 1
0
  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);
  }
Ejemplo n.º 2
0
  public Object getValue(int idx) {
    String n = belongToDT.getColumnName(idx);
    if (n == null) return null;

    return this.get(n);
  }