Code example for ResultSetMetaData

Methods: getColumnCount

0
 
    if (dbmd != null)
    { 
      try 
      { 
        return dbmd.getColumnCount();
      } 
      catch (SQLException e)
      { 
        //Log.debug ("GetColumnCount failed", e); 
        throw new DataTableException("Accessing the result set failed: ", e);
      } 
    } 
    return 0; 
  } 
 
  /** 
   * Returns the columnLabel or column name for the given column. Whether the label or the name is returned depends on 
   * the label map mode. 
   * 
   * @param column the column index.