< prev index next >

src/java.sql.rowset/share/classes/javax/sql/rowset/BaseRowSet.java

Print this page




 313      * <code>SyncProvider</code> abstract class defined in the
 314      * <code>SyncFactory</code> static factory SPI mechanism.
 315      */
 316     public static final int BINARY_STREAM_PARAM = 1;
 317 
 318     /**
 319      * A constant indicating to a <code>RowSetReaderImpl</code> object
 320      * that a given parameter is an ASCII stream. A
 321      * <code>RowSetReaderImpl</code> object is provided as an extension of the
 322      * <code>SyncProvider</code> abstract class defined in the
 323      * <code>SyncFactory</code> static factory SPI mechanism.
 324      */
 325     public static final int ASCII_STREAM_PARAM = 2;
 326 
 327     /**
 328      * The <code>InputStream</code> object that will be
 329      * returned by the method <code>getBinaryStream</code>, which is
 330      * specified in the <code>ResultSet</code> interface.
 331      * @serial
 332      */

 333     protected java.io.InputStream binaryStream;
 334 
 335     /**
 336      * The <code>InputStream</code> object that will be
 337      * returned by the method <code>getUnicodeStream</code>,
 338      * which is specified in the <code>ResultSet</code> interface.
 339      * @serial
 340      */

 341     protected java.io.InputStream unicodeStream;
 342 
 343     /**
 344      * The <code>InputStream</code> object that will be
 345      * returned by the method <code>getAsciiStream</code>,
 346      * which is specified in the <code>ResultSet</code> interface.
 347      * @serial
 348      */

 349     protected java.io.InputStream asciiStream;
 350 
 351     /**
 352      * The <code>Reader</code> object that will be
 353      * returned by the method <code>getCharacterStream</code>,
 354      * which is specified in the <code>ResultSet</code> interface.
 355      * @serial
 356      */

 357     protected java.io.Reader charStream;
 358 
 359     /**
 360      * The query that will be sent to the DBMS for execution when the
 361      * method <code>execute</code> is called.
 362      * @serial
 363      */
 364     private String command;
 365 
 366     /**
 367      * The JDBC URL the reader, writer, or both supply to the method
 368      * <code>DriverManager.getConnection</code> when the
 369      * <code>DriverManager</code> is used to get a connection.
 370      * <P>
 371      * The JDBC URL identifies the driver to be used to make the connection.
 372      * This URL can be found in the documentation supplied by the driver
 373      * vendor.
 374      * @serial
 375      */
 376     private String URL;


 489      * Unused at this time.
 490      * @serial
 491      */
 492     private int fetchDir = ResultSet.FETCH_FORWARD; // default fetch direction
 493 
 494     /**
 495      * A hint to the driver that indicates the expected number of rows
 496      * in this JDBC <code>RowSet</code> object .
 497      * <P>
 498      * Unused at this time.
 499      * @serial
 500      */
 501     private int fetchSize = 0; // default fetchSize
 502 
 503     /**
 504      * The <code>java.util.Map</code> object that contains entries mapping
 505      * SQL type names to classes in the Java programming language for the
 506      * custom mapping of user-defined types.
 507      * @serial
 508      */

 509     private Map<String, Class<?>> map;
 510 
 511     /**
 512      * A <code>Vector</code> object that holds the list of listeners
 513      * that have registered with this <code>RowSet</code> object.
 514      * @serial
 515      */
 516     private Vector<RowSetListener> listeners;
 517 
 518     /**
 519      * A <code>Vector</code> object that holds the parameters set
 520      * for this <code>RowSet</code> object's current command.
 521      * @serial
 522      */
 523     private Hashtable<Integer, Object> params; // could be transient?
 524 
 525     /**
 526      * Constructs a new <code>BaseRowSet</code> object initialized with
 527      * a default <code>Vector</code> object for its <code>listeners</code>
 528      * field. The other default values with which it is initialized are listed




 313      * <code>SyncProvider</code> abstract class defined in the
 314      * <code>SyncFactory</code> static factory SPI mechanism.
 315      */
 316     public static final int BINARY_STREAM_PARAM = 1;
 317 
 318     /**
 319      * A constant indicating to a <code>RowSetReaderImpl</code> object
 320      * that a given parameter is an ASCII stream. A
 321      * <code>RowSetReaderImpl</code> object is provided as an extension of the
 322      * <code>SyncProvider</code> abstract class defined in the
 323      * <code>SyncFactory</code> static factory SPI mechanism.
 324      */
 325     public static final int ASCII_STREAM_PARAM = 2;
 326 
 327     /**
 328      * The <code>InputStream</code> object that will be
 329      * returned by the method <code>getBinaryStream</code>, which is
 330      * specified in the <code>ResultSet</code> interface.
 331      * @serial
 332      */
 333     @SuppressWarnings("serial") // Not statically typed as Serializable
 334     protected java.io.InputStream binaryStream;
 335 
 336     /**
 337      * The <code>InputStream</code> object that will be
 338      * returned by the method <code>getUnicodeStream</code>,
 339      * which is specified in the <code>ResultSet</code> interface.
 340      * @serial
 341      */
 342     @SuppressWarnings("serial") // Not statically typed as Serializable
 343     protected java.io.InputStream unicodeStream;
 344 
 345     /**
 346      * The <code>InputStream</code> object that will be
 347      * returned by the method <code>getAsciiStream</code>,
 348      * which is specified in the <code>ResultSet</code> interface.
 349      * @serial
 350      */
 351     @SuppressWarnings("serial") // Not statically typed as Serializable
 352     protected java.io.InputStream asciiStream;
 353 
 354     /**
 355      * The <code>Reader</code> object that will be
 356      * returned by the method <code>getCharacterStream</code>,
 357      * which is specified in the <code>ResultSet</code> interface.
 358      * @serial
 359      */
 360     @SuppressWarnings("serial") // Not statically typed as Serializable
 361     protected java.io.Reader charStream;
 362 
 363     /**
 364      * The query that will be sent to the DBMS for execution when the
 365      * method <code>execute</code> is called.
 366      * @serial
 367      */
 368     private String command;
 369 
 370     /**
 371      * The JDBC URL the reader, writer, or both supply to the method
 372      * <code>DriverManager.getConnection</code> when the
 373      * <code>DriverManager</code> is used to get a connection.
 374      * <P>
 375      * The JDBC URL identifies the driver to be used to make the connection.
 376      * This URL can be found in the documentation supplied by the driver
 377      * vendor.
 378      * @serial
 379      */
 380     private String URL;


 493      * Unused at this time.
 494      * @serial
 495      */
 496     private int fetchDir = ResultSet.FETCH_FORWARD; // default fetch direction
 497 
 498     /**
 499      * A hint to the driver that indicates the expected number of rows
 500      * in this JDBC <code>RowSet</code> object .
 501      * <P>
 502      * Unused at this time.
 503      * @serial
 504      */
 505     private int fetchSize = 0; // default fetchSize
 506 
 507     /**
 508      * The <code>java.util.Map</code> object that contains entries mapping
 509      * SQL type names to classes in the Java programming language for the
 510      * custom mapping of user-defined types.
 511      * @serial
 512      */
 513     @SuppressWarnings("serial") // Not statically typed as Serializable
 514     private Map<String, Class<?>> map;
 515 
 516     /**
 517      * A <code>Vector</code> object that holds the list of listeners
 518      * that have registered with this <code>RowSet</code> object.
 519      * @serial
 520      */
 521     private Vector<RowSetListener> listeners;
 522 
 523     /**
 524      * A <code>Vector</code> object that holds the parameters set
 525      * for this <code>RowSet</code> object's current command.
 526      * @serial
 527      */
 528     private Hashtable<Integer, Object> params; // could be transient?
 529 
 530     /**
 531      * Constructs a new <code>BaseRowSet</code> object initialized with
 532      * a default <code>Vector</code> object for its <code>listeners</code>
 533      * field. The other default values with which it is initialized are listed


< prev index next >