CachedRowSet
object with data from the given ResultSet
object. This method can be used as an alternative to the execute
method when an application has a connection to an open ResultSet
object. Using the method populate
can be more efficient than using the version of the execute
method that takes no parameters because it does not open a new connection and re-execute this CachedRowSet
object's command. Using the populate
method is more a matter of convenience when compared to using the version of execute
that takes a ResultSet
object.
@param data the ResultSet
object containing the datato be read into this CachedRowSet
object
@throws SQLException if a null ResultSet
object is suppliedor this CachedRowSet
object cannot retrieve the associated ResultSetMetaData
object
@see #execute
@see java.sql.ResultSet
@see java.sql.ResultSetMetaData
|
|
|
|