| Sign In/My Account | View Cart |
Making the Most of JDBC with WebRowSet
Pages: 1, 2, 3, 4, 5
WebRowSet also provides several readXML() methods to read data from valid XML using java.io.InputStream or java.io.Reader instances. You will find this option helpful if your input data is in the form of valid XML that you need to persist to the underlying database before (optionally) doing some other processing.
Having shown off the basic operation of the WebRowSet, let's tally up the advantages and disadvantages of using this approach with your data.
The WebRowSet interface is appropriate in following scenarios:
WebRowSet API reduces programming complexity as well as the amount of code to write.Until recently, converting data back and forth between database and XML representations used to be a major task that would take a large chunk of application development and testing resources. Fortunately, the newest version of the JDBC API provides features such as precise navigation through the result set, caching of result sets, writing result sets to XML, etc. Given the importance of RDBMS to the enterprise programmer and with the current and ever-growing popularity of Java and XML applications, the features provided by interfaces like WebRowSet will be very useful. So, it is time to rethink if you are still planning to use conventional data access approaches in your next Java/XML application that uses RDBMS for data persistence; WebRowSet may offer a real improvement.
Sharad Acharya has more than eight years of experience in the software engineering field in multiple business domains including supply chain, insurance, banking, and mortgage.
Return to ONJava.com.