ResultSet
object for which this JdbcRowSet
object is a wrapper, effectively making the result set a JavaBeans component. Certain properties must have been set before this method is called so that it can establish a connection to a database and execute the query that will create the result set. If a DataSource
object will be used to create the connection, properties for the data source name, user name, and password must be set. If the DriverManager
will be used, the properties for the URL, user name, and password must be set. In either case, the property for the command must be set. If the command has placeholder parameters, those must also be set. This method throws an exception if the required properties are not set.
Other properties have default values that may optionally be set to new values. The execute
method will use the value for the command property to create a PreparedStatement
object and set its properties (escape processing, maximum field size, maximum number of rows, and query timeout limit) to be those of this rowset.
@throws SQLException if (1) a database access error occurs,(2) any required JDBC properties are not set, or (3) if an invalid connection exists.
|
|