Esempio n. 1
0
  // check
  @Override
  public Date getDate(int columnIndex) throws SQLException {
    if (!checkConnection) {
      log.info("Error in connection !");
      throw (new SQLException());
    }

    columnIndex--;
    Date d = (Date) new java.util.Date();
    try {
      long l = d.parse(adjList[columnIndex].get(row));
    } catch (Exception e) {
      log.info("the value at this index isn't of type DATE !!");
      throw (new SQLException());
    }
    return d;
  }
Esempio n. 2
0
  @Override
  // lessa msh mota2aked menha
  public Date getDate(String columnName) throws SQLException {
    if (!checkConnection) {
      log.info("Error in connection !");
      throw (new SQLException());
    }

    int columnIndex = findColumn(columnName);
    Date d = (Date) new java.util.Date();
    try {
      long l = d.parse(adjList[columnIndex].get(row));
    } catch (Exception e) {
      log.info("the value at this index isn't of type DATE !!");
      throw (new SQLException());
    }
    return d;
  }