Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6870561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:41:54+00:00 2026-05-27T03:41:54+00:00

Until today I was working with ResultSet when handling results from queries. But today

  • 0

Until today I was working with ResultSet when handling results from queries. But today I read a little about RowSet and CachedRowset and I realized they can serve my purposes better. While in all the examples I read where RowSet and CachedRowSet were referred to as object, when I tried it myself in my code I realized those are interfaces and in the examples they use some implementation of those interfaces.

Now my question is where do I find those implementations, and is there something official?

Do I need to download them or do they come with the JDK?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:41:55+00:00Added an answer on May 27, 2026 at 3:41 am

    The implementations are JRE specific. Oracle (Sun) JRE comes with a bunch of implementations:

    • com.sun.rowset.JdbcRowSetImpl
    • com.sun.rowset.CachedRowSetImpl
    • com.sun.rowset.WebRowSetImpl
    • com.sun.rowset.FilteredRowSetImpl
    • com.sun.rowset.JoinRowSetImpl

    In Java 1.6 and before, you’d need to construct them yourself:

    JdbcRowSet rowSet = new JdbcRowSetImpl();
    rowSet.setDataSourceName("jdbc/dbname");
    // Or
    rowSet.setUrl("jdbc:vendor://host:port/dbname");
    rowSet.setUsername("username");
    rowSet.setPassword("password");
    
    rowSet.setCommand("SELECT id, name, value FROM tbl");
    rowSet.execute();
    
    while (rowSet.next()) {
        // ...
    }
    

    In Java 1.7 you can get them by a javax.sql.rowset factory so that you’re not dependent of underlying JRE implementation and that you can finetune the implementation of choice if necessary:

    RowSetFactory rowSetFactory = RowSetProvider.newFactory();
    JdbcRowSet rowSet = rowSetFactory.createJdbcRowSet();
    // ...
    

    It only doesn’t provide a possibility to pass a ResultSet on construction. Those implementations doesn’t ship with the average JDBC driver (at least, MySQL and PostgreSQL have none). It’s basically an extra (optional) layer over JDBC API as the package name prefix javax hints.

    Note that if you get that far by looking into rowsets, then you might want to consider to look into an ORM instead, such as Hibernate or JPA. They provide first/second level cache possibilities.

    See also:

    • JDBC Guide – Chapter 10 – RowSet
    • JDBC RowSet tutorial, by Oracle
    • Java 8 javax.sql.rowset package summary
    • Source code in OpenJDK 8 for Oracle’s com.sun.rowset implementation, Gnu GPL 2 license with Classpath exception
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with a CMS, and up until today its been fine. But
My IDE has been working very well, until today. When I try to compile
I use infinite scroll for paging. And it was working fine until today. Today
Up until today I've been able to run queries without using the [databaseName].[dbo].[fieldName] syntax.
Until yesterday everything was normal but today i try to lauch my application using
Hi I use jQuery validator for one form. It was working nice until today.
I wrote a heredoc three weeks ago that was working great, and until today
Im working with Hibernate 3.6 and until today I couldnt find any disadvantages of
I’m working on a Scala script which uses Joda Time. Up until today, this
Until today, I have been able to use bzr pull server:path/to/trunk , but today

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.