equal
deleted
inserted
replaced
6429 * @throws SQLException if the rowset is empty or no columns |
6429 * @throws SQLException if the rowset is empty or no columns |
6430 * are designated as primary keys |
6430 * are designated as primary keys |
6431 * @see #setKeyColumns |
6431 * @see #setKeyColumns |
6432 */ |
6432 */ |
6433 public int[] getKeyColumns() throws SQLException { |
6433 public int[] getKeyColumns() throws SQLException { |
6434 return keyCols; |
6434 int[]keyColumns = this.keyCols; |
|
6435 return (keyColumns == null) ? null : Arrays.copyOf(keyColumns, keyColumns.length); |
6435 } |
6436 } |
6436 |
6437 |
6437 |
6438 |
6438 /** |
6439 /** |
6439 * Sets this <code>CachedRowSetImpl</code> object's |
6440 * Sets this <code>CachedRowSetImpl</code> object's |