Code example for Time

Methods: getTime

0
  @Override 
  public Date getNullableResult(ResultSet rs, String columnName)
      throws SQLException { 
    java.sql.Time sqlTime = rs.getTime(columnName);
    if (sqlTime != null) {
      return new Date(sqlTime.getTime());
    } 
    return null; 
  } 
 
  @Override 
  public Date getNullableResult(ResultSet rs, int columnIndex)
      throws SQLException { 
    java.sql.Time sqlTime = rs.getTime(columnIndex);
    if (sqlTime != null) {
      return new Date(sqlTime.getTime());
    } 
    return null; 
  }