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

  • Home
  • SEARCH
  • 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 9089825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:14:02+00:00 2026-06-16T22:14:02+00:00

I do have a resultset,which I need to validate only some fields and then

  • 0

I do have a resultset,which I need to validate only some fields and then update to another table,Really I dont know how to validate it and pass back to the orginal resultset?Is there any way to do it in a better perspective.I do have huge data,so I need to also consider the perfomance

while (rs.next()) {
    dataValidation.insertRegDataValidation(rs);

}

where the insertRegDataValidation(rs) is method where validation occurs,and if validations returns false,I dont want to update the table,instead of that I want to throw Error,Does any one know any better concepts regarding the same.I never wants to use any frameworks,and to do it in java in an optmized way

  • 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-06-16T22:14:03+00:00Added an answer on June 16, 2026 at 10:14 pm

    If the resultset is not huge; you can firstly use ResultSet object to iterate on all resultSet –> do validation on each result –> passing records are put in an ArrayList.

    When above iteration finishes ; iterate on this arrayList and you can use same resultSet object to execute inserts..

    Other approach can be to use two resultSets. One for Selecting ; while other for all inserts.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table from which I query data to display resultset using stored
I need to write a sproc which performs some INSERTs on a table, and
I have a really big query in which makes some troubles for me because
I have a resultset which has ProductURL stored : accessoires/abc/285/P187654 accessoires/abc/285/D18765432 accessoires/abc/285/A1876543 I need
I have one application in which I need to delete table if exit in
I have a SelectSP which returns resultset that i am storing in the temp
I have a table 'results' in which the scores are stored. Its ordered by
I have two tables. One user table and one table in which results are
I have a custom control which displays results of some operations. It is hidden
I have the following script, which will paginated results from an array... but only

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.