jdk/src/share/classes/java/sql/ResultSet.java
changeset 21278 ef8a3a2a72f2
parent 20880 1b610151b316
child 21950 db3c826749f7
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   182      * this to happen when it is automatically closed.
   182      * this to happen when it is automatically closed.
   183      *
   183      *
   184      * <P>The closing of a <code>ResultSet</code> object does <strong>not</strong> close the <code>Blob</code>,
   184      * <P>The closing of a <code>ResultSet</code> object does <strong>not</strong> close the <code>Blob</code>,
   185      * <code>Clob</code> or <code>NClob</code> objects created by the <code>ResultSet</code>. <code>Blob</code>,
   185      * <code>Clob</code> or <code>NClob</code> objects created by the <code>ResultSet</code>. <code>Blob</code>,
   186      * <code>Clob</code> or <code>NClob</code> objects remain valid for at least the duration of the
   186      * <code>Clob</code> or <code>NClob</code> objects remain valid for at least the duration of the
   187      * transaction in which they are creataed, unless their <code>free</code> method is invoked.
   187      * transaction in which they are created, unless their <code>free</code> method is invoked.
   188      *<p>
   188      *<p>
   189      * When a <code>ResultSet</code> is closed, any <code>ResultSetMetaData</code>
   189      * When a <code>ResultSet</code> is closed, any <code>ResultSetMetaData</code>
   190      * instances that were created by calling the  <code>getMetaData</code>
   190      * instances that were created by calling the  <code>getMetaData</code>
   191      * method remain accessible.
   191      * method remain accessible.
   192      *
   192      *
  2421      * <code>ResultSet</code> object.
  2421      * <code>ResultSet</code> object.
  2422      * If the result set was generated some other way, such as by a
  2422      * If the result set was generated some other way, such as by a
  2423      * <code>DatabaseMetaData</code> method, this method  may return
  2423      * <code>DatabaseMetaData</code> method, this method  may return
  2424      * <code>null</code>.
  2424      * <code>null</code>.
  2425      *
  2425      *
  2426      * @return the <code>Statment</code> object that produced
  2426      * @return the <code>Statement</code> object that produced
  2427      * this <code>ResultSet</code> object or <code>null</code>
  2427      * this <code>ResultSet</code> object or <code>null</code>
  2428      * if the result set was produced some other way
  2428      * if the result set was produced some other way
  2429      * @exception SQLException if a database access error occurs
  2429      * @exception SQLException if a database access error occurs
  2430      * or this method is called on a closed result set
  2430      * or this method is called on a closed result set
  2431      * @since 1.2
  2431      * @since 1.2
  2747 
  2747 
  2748     //-------------------------- JDBC 3.0 ----------------------------------------
  2748     //-------------------------- JDBC 3.0 ----------------------------------------
  2749 
  2749 
  2750     /**
  2750     /**
  2751      * The constant indicating that open <code>ResultSet</code> objects with this
  2751      * The constant indicating that open <code>ResultSet</code> objects with this
  2752      * holdability will remain open when the current transaction is commited.
  2752      * holdability will remain open when the current transaction is committed.
  2753      *
  2753      *
  2754      * @since 1.4
  2754      * @since 1.4
  2755      */
  2755      */
  2756     int HOLD_CURSORS_OVER_COMMIT = 1;
  2756     int HOLD_CURSORS_OVER_COMMIT = 1;
  2757 
  2757 
  2758     /**
  2758     /**
  2759      * The constant indicating that open <code>ResultSet</code> objects with this
  2759      * The constant indicating that open <code>ResultSet</code> objects with this
  2760      * holdability will be closed when the current transaction is commited.
  2760      * holdability will be closed when the current transaction is committed.
  2761      *
  2761      *
  2762      * @since 1.4
  2762      * @since 1.4
  2763      */
  2763      */
  2764     int CLOSE_CURSORS_AT_COMMIT = 2;
  2764     int CLOSE_CURSORS_AT_COMMIT = 2;
  2765 
  2765