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 669035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T00:06:26+00:00 2026-05-14T00:06:26+00:00

Context In our application, we snapshot data from a database using a query that

  • 0

Context

In our application, we snapshot data from a database using a query that is entered by a super user, and then we save the data from that snapshotting using XML. If I was using .NET, I would use a DataSet (+ DataTables) and DataViews, which are pretty good for that purpose. But I am in the Java world, and my impulse choice was to store the snapshotted data using XML (this can be easily changed at this phase of the project).

Question 1

Is there anything that allows you to snapshot data without having to create its structure first for the Java platform, like a DataSet would do for .NET, and that would allow to perform queries on that data later? I thought about storing it in the database or using Apache Lucene, but for both approaches I would have to manage the database structure, which I would prefer not doing.

Question 2

Supposed you have the following XML:

<data>
<record>
   <user>ravi</user>
   <age>32</age>
   <city>calgary</city>
</record>
<record>
   <user>spiderman</user>
   <age>68</age>
   <city>new york</city>
</record>
</data>

And, on that data, I would execute the following query:

age > 50 or city = 'new york'

The result of that operation would be a subset of the original XML only with the records that match the conditions in the query.

Thanks!

  • 1 1 Answer
  • 1 View
  • 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-14T00:06:26+00:00Added an answer on May 14, 2026 at 12:06 am

    There is something a bit similar called a RowSet, which is part of the JDBC spec. You can get data and cache them in a CacheRowSet that you can manipulate or even update later. Seems like there is also a FilteredRowSet, so that you can create view that shows only the data you want.

    This looks relatively similar to ADO.NET DataView and DataSet. Note also that RowSet are not popular in Javaland.

    A few more pointers:

    • A small introduction: http://onjava.com/pub/a/onjava/2004/06/23/cachedrowset.html
    • Early access reference implementation: http://java.sun.com/developer/earlyAccess/jdbc/jdbc– rowset.html
    • JDBC API and Implementations: http://java.sun.com/products/jdbc/download.html#rowset1_0_1
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using Linq To SQL with our own data context logic that executes
We are using Linq To SQL with our own data context logic that executes
We have a few sections of our application that are using AJAX.NET 5.7.25.1. Our
In our application we use the repository pattern to retrieve and persist data from
In our layered application, we are accessing database via WCF calls. We are creating
Our application defines a URL scheme whose resolution is context-sensitive: The content of the
Our C# application needs to launch a thirdpart (from our customer) executable (VC++) to
Assume the following problem context: 1) In our application, we have a business object
We are migrating our web application from Spring 2.5 to Spring 3.0.5. Looks like
Context: An ongoing problem we have been facing is unit testing our market data

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.