jdk/src/share/classes/com/sun/rowset/CachedRowSetImpl.java
changeset 11683 5e02efd89af6
parent 11129 f9ad1aadf3fa
child 13012 c4ef809d7fca
equal deleted inserted replaced
11682:0abce7b186a8 11683:5e02efd89af6
  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