Mapping ResultSet to Context and vice versa

Hi,
We've been pondering the usage of SQL ResultSet (java.sql.ResultSet) and the context.
When creating database applications we have to get the data from database to a ResultSet and copy the data to the context to be able to use it. Then if we make changes to the data in the context, and have the same changes in the database, we have to create SQL update clauses for the data in the context and execute them. With ResultSet it would be just:
rs.updateString("NAME", "AINSWORTH"); // updates the name
rs.updateRow(); // updates the row in the datasource
We would like to use ResultSets for the data behind controls (tables etc.) to be able to update the resultset and the database without having to write SQL update, insert, delete etc. clauses.
Is this possible ? If it is, how ? If it is not, why ?
Any insight or suggestions are greatly appreciated.
Kind Regards,
Jari Pakarinen

Thanks for the reply,
Web service would just add complexity, as we are aiming for simplicity. Also we would like to lessen the amount of boilerplate code to do this. Now we have to create SQL clauses for everything we do with the database. And this for every application we code.
If we could use ResultSet instead of Context or somehow map Context and ResultSet dynamically as the data source for the controls we'd be all set.
We would like to just load the data into a ResultSet, do modifications to it WITHOUT SQL (with e.g. WebDynPro table) and commit the modifications WITHOUT SQL back to the database. Only SQL needed would be the one that loads the ResultSet in the first place.
Regards,
Jari
Message was edited by: Jari Pakarinen

Similar Messages

  • SSRS subscriptions in default zone of sharepoint 2013 are not showing in intranet zone and vice versa.

    one of the Sharepoint 2013 site collection has alternate access mappings created. Default site is .com and intranet is .local.
    So when we add SSRS subscription in .com - they are not showing in .local and vice- versa. How do we fix this so the subscriptions are same in both .com and .local.

    Hi spanda,
    Per my understanding that you have configured the alternate access mappings which Default site is .com and intranet is .local. But the subscription in one of the site will not list in another mapped site, right?
    Actually, if you are on a different Alternate Access Mapping other than the Subscription was created on, we will get no subscriptions, Because we are using the method "Microsoft.ReportServices.SharePoint.UI.ManageSubscriptionPages"
    to deal with the logic by creating the value for "m_reportUrl" using the current context of the URL the user is using and passing that to the "SubscriptionListControl".  You can find the code in this article if you have some
    knowledge of development:
    SQL Server Reporting Services ignores Alternate Access Mappings When Checking for Report Subscriptions
    I recommand you to submit an feedback at
    https://connect.microsoft.com/SQLServer/
    If the suggestion mentioned by customers for many times, the product team may consider to add the feature in the next SQL Server version. Your feedback is valuable for us to improve our products and increase the level of service
    provided.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • My family of four (2 iPhones, 2 iPods) all share the same iTunes account.  Many text messages sent to or from mine or my husband's phones are also received on my daughter's iPod, and vice versa. How do I fix this?

    How can I keep text messages sent from my or husband's phone from being received on daughter's iPod, and vice versa? We have five devices on one iTunes account - 2 iPhones, 2 iPods and an iPad.

    Hello Hrd1977,
    This is typically caused by both devices sharing an Apple ID for iMessage and FaceTime.  I would recommend signing out of iMessage on your daughter's device.  Go to Settings > Messages > Send & Receive, tap your Apple ID, and select Sign Out. Then sign in with the desired Apple ID.
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Cheers,
    Allen

  • While inserting numeric data into a character datatype field and vice versa

    Sir,
        I have a very basic qiestion.Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?Iam using Oracle Database 10g Enterprise edition.

    Why am i not getting any error while inserting to say employees table a character type data to a numeric type field and vice versa?
    Oracle tries an automatic conversion, when possible. Post an example of a character type data inserted into a numeric column.

  • I just got 2 new iphone 4 (verizon) i have a issue, i have 2 itunes account 2 phone seperate names and emails. but when i update or sync my phone it copys my wife stuff on to my phone and vice versa.

    hello
    i need some help.
    well you see up above where i have 2 iphone 2 different names for the phones and 2 different accounts with 1 itunes on widows 7.
    my problem is when i update or sync my phone it grabs all her info and apps ect. and vice versa when she does it to. is there any way that i can stop this from happing again?
    1 more thing this happens just on her phone when she goes to download a app for some reason my email is on her phone, we have to sign out from her phone and sign back in and put her email in any thoughts on this?

    By far the simplest way to do this is create separate accounts on the computer for each person.  That way, you each log into your own separate account, sync your own device(s) to your own contacts/calendars/apps/music and so forth.

  • My nephew and I use the same iTunes account and when I add an app it is loaded on to his iPhone and vice versa... How do I make that stop?

    My nephew and I use the same iTunes account and when I add an app it is loaded on to his iPhone and vice versa... How do I make that stop? I have already unchecked the "Auto Update Apps" button. It happens with all purchases in the app store and on iTunes. HELP!

    I also think separate accounts is the way to go....if he is over 13yrs also remember if you do make an account for him and use your bank card all purchases will be charged to your card.

  • HT1766 Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    Hi, I share an iTunes account with my wife. Sometimes she gets my iMessages and I don't and vice versa. Also if people face time me it goes to her phone. How can I stop this from happening?

    You can share the same Apple ID in
    Settings > iTunes & App Store > Apple ID: here
    But for all other Apple services like:
    FaceTime, iMessage, iCloud, etc, one of you should use a different Apple ID.

  • Email sent on my iphone 5 does not show in the sent folder in mail on my macbook pro and vice versa especially since update to Yosemite

    I have an iphone 5 and a Macbook pro. Since upgrading to Yosemite, when I send an email from my yahoo email account or another email account linked to my website, on my iphone, the emails don't show in the sent folder in mail on my macbook pro and vice versa.
    I have deleted the accounts and re-created them on both my iphone and macbook pro but the samething keeps happening.
    When last I was at the istore, they were unable to sort it out and said I needed to book it in.
    Any suggestions that will prevent me from booking my macbook pro in are welcome.

    Hi,
    Are you saying you are trying to synch iMessages across two iPhones ?
    Or do you mean you are trying to get iMessage that were synced to one iPhone to show on another ?
    Whilst the first is possible - from the date you add the second iPhone the second  is not possible.
    10:11 PM      Saturday; January 5, 2013
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • My partner and I share and iCloud account, we updated our software now whenever she gets a text message I see it on my phone and vice versa

    My partner and I share an iCloud account . We both have the iPhone 5. We recently updated the software to the iOS 7.2 and now whenever she gets a text message I receive and vice versa. This never happened before only happened since the update

    iCloud has nothing to do with messages (iCloud does include an email account, but not a messaging service).  If you both use the same AppleID for iMessage, then you are sharing the same messaging account.
    One of you needs to get an alternate AppleID, sigin out of iMessage, then sign in with the alternate AppleID.  That way you will each have your own private iMessage accounts.

  • How to sync my iPhone to my MacBook Pro and vice versa as it no longer seems to be doing?

    How to sync my iphone to my MacBook Pro and vice versa as it no longer seems to be doing? When I initially set up everything it worked fine; however, now my contacts are not syncing between devices?
    I have Icloud and even paid for ectra storage to see if this was the issue but it doesnt seems to be.  When I try and view devices on my itunes to sync it will not allow - blank option?
    If anyone could please help it would be really appreciated- thanks in advance:)

    I don't know how you got to your current position, but you might want to start by replacing your calendar with your MacBook Pro calendar if it is correct (if it isn't, skip this):  first disable calendar syncing on your phone (Settings>iCloud>Calendars set to OFF), then prior to syncing open iTunes on your computer and disable automatic syncing (under Preferences>Devices>Disable...from syncing automatically syncing).  Next connect your phone and set your sync settings on the Info tab to Syc Calendars with iCal, and below under Advanced choose "Replace Information on this iPhone" and check Calendars.  Now sync and this will hopefully replicate your MacBook calendar on your iPhone.
    Next, carefully review this to see that you have correctly set up iCloud on both your phone and your MacBook: http://www.apple.com/icloud/setup/, and that your meet the minimum system requirements (latest version of iOS on your phone, latest version of iTunes, OSX Lion 10.7.2 or later).

  • How can i sync email deletions on my iPhone and iMac, and vice versa?

    My email provider is Sky in the UK. While i am able to receive the same emails on both devices (imac and iphone) simultaneously, if I delete one on the iphone, it is not deleted on the iMac, and vice versa. I don't want to have to delete emails twice, once on each machine, but rather only once on one machine (and then that email would automatically disappear from the inbox of the other machine).
    Is this possible? My sky account is IMAP on the Iphone, but POP on the IMAC. I tried changing it to IMAP on the iMac, but then i couldn't received email messages in MAIL on the iMac so reverted it back to a POP account.
    Any advice appreciated. Spent way too many hours today trying to figure this out.
    Thanks,
    Joe

    if it were imap on both, you'd be able to delete an email from one device and it would remove it from the other. they can't have different protocols and still sync with each other

  • I have the iPhone 4S and my daughter has the iPad 2, we share one Apple ID, is there anyway to stop her text messages from appearing on my iPhone and vice versa?

    I have the iPhone 4S and my daughter has the iPad 2.  We share my Apple ID.  Is there any way to stop her text messages from appearing on my phone, and vice versa?  She doesn't need to be reading my texts!

    no, there currently is no way of doing this. You can only create a second Apple ID.

  • How do I move an icon from the second page of my home screen to the first page  and vice versa?

    How do I move an icon from the second page of my home screen to the first page and vice versa?

    Hold an icon down until they all wiggle.
    Drag it wherever you want it.

  • My family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    my family and I share the same account of apple. I'm getting phone calls and messages from my mothers and my number and  vice versa. is there anything we can do

    The short solution is to go to Settings > FaceTime > iPhone Cellular Calls OFF.
    However, as Csound points out, you should not really be sharing an Apple ID with anyone. See: How to Stop Sharing an Apple ID.
    (Note that I am affiliated with that site, and some pages contain ads).

  • HT201406 The Home button on my iPod Touch is very unresopnsive.  It takes several tries to activate it.  While doing so, it responds to one click vs the intended two clicks and vice versa.  It is a very frustrating process.  Any suggestions?  I tried the

    The Home button on my iPod Touch is very unresponsive.  It takes several tries to activate it.  While doing so, it responds to one click versus the intended two clicks and vice versa.  It is a very frustrating process.  Any suggestions?  I already tried the "shut off" process that was suggested on the Apple site, but that did not help.

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

Maybe you are looking for

  • How to change the background color of a cell based on other cell background

    Hi, Sorry if this is a basic question - I am new to XML. I want to create a table column, with no data in it. I then want to change the background color of the column based on the background color of other columns. I.E. - If there are 3 or less cells

  • Where should i call the rfc function module? in xi or in r/3

    where should i call the rfc function module? for the synch scenario: file < -- >  xi <---> rfc i know the type of rfc is tcp/ip; but i'm not sure with the followings, and with some trials i can not even see any message via rwb even all the setting ca

  • Firefox upgrade prevents access to NAS web page

    Firefox is the likely cause of the web admin page of a Buffalo Linkstation Live 1Tb network attached storage device being inaccessible. == This happened == Every time Firefox opened == on every attempt to open the NAS web admin page after Firefox upg

  • Development of SPML Web Services in OIM

    Hello All, I need to write some custom SPML based web services, which are not available in OIM 9.1.0 release. Is there any framework available that can be used for the same? Thanks in Advance, Shyam

  • RSZV Transaction in BI7

    Hi, Am not seeing RSZV Transaction in BI7  and now i want to maintain variables . Plz can anyone tel me how to do in BI7. Already some has replied to this mail but am seeing what they are saying in the screen. Thanks, Medha.