/** * Returns the list of field names on this object. * * @return list of field names on this objects or the empty list if the object doesn't have any * fields. */ public String[] getFieldNames() { String[] keys = new String[(int) row.getColumnCount()]; for (int i = 0; i < keys.length; i++) { keys[i] = row.getColumnName(i); } return keys; }