Is neccesary to use commit()...when you use stmt.executeUpdate(sentence);?

Is neccesary to use commit()..... when you use
stmt.executeUpdate(sentence);
and the sentence is by example:
sentence = "delete from table_X where ELEMENT1 = 'hi'"; ????
This is because...i did a servlet in which i send a sentence (the sentence could be insert or delete).....and apparently it is working very well....i can see that the rows are added or removed in the DB table...but i am a little confused...because in a paper says "modifications in tuples are temporarily stored in the db system. They become permanent only after the statement commit has been issued"
and i am not calling commit in my servlet.....
Thanks in advance,
Mary

AFAIK, by default, Connection objects have their auto-commit feature enabled.
So, assuming your database supports transactions, every operation will be commited automatically by the JDBC driver's code.
To turn it off, you must call:
connection.setAutoCommit( false );
By doing so, you will need to call commit() in your code if you want to make those changes permanent.
HTH

Similar Messages

  • Can my family use 'find my iphone' for each other if we each have separate apple ids? recently had to create separate ones b/c we were getting each others texts/facetimes and i read this happens when you share an apple id.

    Can my family still use the 'find my iphone' app from our iphones / ipod touch to locate each others phone if we have separate apple ids?  We were sharing a single apple id but recently we started getting each others texts/facetimes .. I read that this happens when you share an apple id.  Will we just have to sign in with the others' apple id to locate their phone ?

    Use Find My Friends app instead.   Much easier to manage, and you won't need each other's id/pw's to do it.   They only need to accept your invitations and vice versa.

  • Hi! This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ip

    Hi!
    This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ipod still work with it??? Or would his ITunes just see my IPod? Or does his Ipod ID change to my ID?
    Or does it work without any problems, to setup two IDs on the same computer??
    Thanks!

    Hi!
    This might be a stupid question, but I just bought an IPod G5 60 GB. When you firstconnect your IPod you have to setup your ID. I'm using my brothers computer, who has an IPod too, so now I'm wondering when I set up my ID with his Itunes does his Ipod still work with it??? Or would his ITunes just see my IPod? Or does his Ipod ID change to my ID?
    Or does it work without any problems, to setup two IDs on the same computer??
    Thanks!

  • I have OSX 10.5.7 on my Intel Mac. When I try to login using the correct password the screen goes white and just returns back to the login screen. It does not jiggle like when you enter the wrong password.

    I have had a number of issues with my Intel Mac recently and had to reboot using disk utilities, safe mode, OSX recovery, but always come back to the login screen but when I type my password the screen goes white and returns to the login screen. My password is correct and the login does not jiggle as it would if the password was wrong. Please advise,

    Back up all data if you haven’t already done so. There are ways to back up, even if you can’t log in. Before proceeding,you must be sure you can restore everything to the state it’s in now. If you’re not sure you can do that, STOP.
    The procedure below may spare you the need for a clean reinstallation of OS X. If you don't feel comfortable carrying it out, don't. try.
    Briefly, you need to delete the following file:
    /var/audit/current
    If you already know how to do that, you can skip the rest of this message. Do it, and try again to log in.
    Boot in single-user mode by holding down the key combination command-S at the startup chime. If you’re using an external USB keyboard, it must be plugged directly into a built-in port on the Mac, not into a hub. Release the keys when you see a black screen with scrolling white text. In this mode, there’s no graphical interface; just a command line. Initially, you can’t make any changes to files.
    When the text stops scrolling, and you see a line ending in a pound sign (“#”), type the following command:
    mount -uw /
    You must type the command exactly as given, with no mistakes. If you don’t feel able to do that, STOP. At this stage, no harm will be done if you make a mistake, but later, it will be. Press the return key.
    Next, type the following command:
    rm -i /var/audit/current
    Press return. You should get the following output:
    remove /var/audit/current?
    If that's not what you get, STOP. Type the single letter N, press return, and try again. Otherwise, type the single letter Y and pressreturn.
    Finally, enter the command:
    exit
    Press return. The text will start scrolling again, and then the system will reboot. Try again to log in.
    Credit for this solution to ASC user AnthonyTW.

  • This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on a terminal server

    Hi All,
    I have Citrix VDI (Virtual Desktop Infrastructure) Implemented
    in my company and installed few Applications on App Server lets say.... MS Office 2013, filzialla, putty, etc...
    I assigned these apps to the users through CITRIX STUDIO, when I try to use these apps. on VDI everything is working fine only when i tried to open Word, Excel or Powerpoing, outlook it throws error as 
    ""This copy of Microsoft Office 2013 cannot be used on a computer running Terminal Services" error message when you try to open the Click-to-Run version of an Office 2013 program or suite on
    a terminal server"" and apps gets closed.
    Please help me on this ASAP.
    Thanks & Regards,
    Sachin Shinde

    Hi,
    As mentioned in ths article below, run for Office 365 products on to a Remote Desktop Session Host server is not supported. You can install Office products for Office 365 to a virtual desktop, but the virtual desktop must be assigned to a single user.
    http://technet.microsoft.com/en-us/library/jj219423(v=office.15).aspx
    Regards,
    Melon Chen
    TechNet Community Support

  • TS1424 How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    How to fix iTunes when you get this you can download past purchases on this computer with just one apple ID every 90 days. This computer can be used with a different apple iD in 50 days

    hi i dont know if this will work for anyone but i had not been on itunes for sometime but today i went on to watch a new episode of walking dead but it said i still had to wait 36 days out of the 90days , i managed to get my episode to download load by clicking my apple id in itunes going to account and at the very bottom off the page there is a button that says reset all warnings for buying and downloading i pressed this then it let me download hope this works for you worked for me

  • I am trying to use imovie and i have never had this problem before. All of my videos are completly grey and when you try and play them all i get is a black screen but i still hear audio.  Can you please help and tell me what i need to do. Thank you

    I am trying to use imovie and i have never had this problem before. All of my videos are completly grey and when you try and play them all i get is a black screen but i still hear audio.  Can you please help and tell me what i need to do. Thank you

    Make sure all of the videos used in the project that is having that problem are from the same event. If they are from multiple events, move them all into one event.

  • In the Calendar there used to be the daily activities listed at the bottom of the page when you had the monthly view on it

    In the Calendar there used to be the daily activities listed at the bottom of the page when you had the monthly view on it.
    For example you could see the whole month, the day you select was highlighted and at the bottom of the page listed any activities.
    Now this does not happen. Am I missing something?
    The Calender seems to have gone backwards!!!
    HELP!!!
    PLEASE!!!!

    Ditto!  I have always preferred the month as the default view and the list at the page bottom let me know what I need to pay attention to for today (or tomorrow, or any future date).  Having to scoll through every hour of the day to find items that may or not be there is a huge waste of time!
    I hate this calendar!!!!  I've been okay with other changes in ios7 but they need to make changes.  How about letting us configure our own calendar views?  Choose "home" page look by month or week, itemize daily view by hour or by items entered, etc.

  • When you are pulling music from a hard drive and it says music can not be found, is there a way to stop it from doing that every time I play music from my computer? It used to find all music now it only finds 1 song at a time

    When pulling music from a harddrive and it say music can not be found, is there a way to stop this from happening every time I play music on my computer? It used to find all music when serching for song but now it only finds 1 at a time. I have over 2000 songs so I can't go through this every time.

    1) However I do not want to move my itunes Music onto the flash drive, only my Movies, and want to keep my music on my hard drive.
    Is this possible?
    Yes
    2) Do the MacBook Air's not have a separate program other than itunes that can play movies? If so, is there a program I can get to solve this problem? I went onto the App Store to see if there was something I could download, but all the apps were for creating DVD's, not simply playing them.
    If you can play the movies in iTunes, you should be able to open the movie files using Quicktime, which should already be on your system.  If you have already transferred the files to your flash drive, open the flash drive in Finder, and hold control when you click on the movie file (or right click if you have the enabled) and select Open With Quicktime Player.  This should play the movie directly from the flash drive. 
    If you want to set all .m4v files to open with Quicktime by just double clicking on the file, you can follow the steps here: http://www.tech-recipes.com/rx/2573/os_x_how_to_change_default_application_to_op en_file_type/
    3) If 1. & 2. questions are solvable, will it then be safe to delete the movies from my itunes?
    You can move the TV shows to your flash drive by dragging them from the iTunes window to your flash drive in Finder or the flash drive icon on the desktop.  When you are sure everything is transferred over to your external device, you can delete the movie from iTunes.  I recommend playing the videos from the flash drive first before deleting them in iTunes. 
    To delete the videos from iTunes, you can highlight them and press the delete key on your keyboard.  In the next prompt, you would want to move it to the trash so that it is deleted from your internal hard drive.  
    I hope that helps!

  • Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels. For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one .. Than

    Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels.
    For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one ..
    Thank you for your attention.
    Annalisa 

    Don't understand what you writing here.  Screen shoots would be most helpful.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • HT4914 if you use iTunes match in order to create space and remove music from your hard drive, does that happen automatically when you subscribe and upload your music or is there another step to remove the music from your hard drive once you've uploaded t

    if you use iTunes match in order to create space and remove music from your hard drive, does that happen automatically when you subscribe and upload your music or is there another step to remove the music from your hard drive once you've uploaded to iTunes match?

    Welcome to the Apple Community.
    iTunes match won't automatically remove content from your computer, if you want to do that you will need to do it manually yourself.

  • On settings if you activate use iCloud for Pages, then when you try to open Pages (on both iphone 5 and iPad3) the program quits instantly.

    Pages does not work properly if you choose to use ICloud in Settings in both the iphone 5 and Ipad 3. In fact when you click open, Pages opens momentarily and then Quits. If you de-activate use ICloud for pages in Settings then the program works but you cannot access icloud.

    Thanks David for your suggestion. However I tried this before I submitted my problem but to no avail. I think the problem could be in iCloud interface with Pages! Hope apple would look into this soon!

  • Bridge won't open NEF files, when you double click them, using PS CC

    I have installed the latest version of PS CC and the Bridge, but when I go to my Nikon NEF files and double click to open them, they open up in some weird Window Photo Gallery, then I went to the preferences for bridge and reset the settings, and now when you double click on them nothing happens and they don't open at all.  I am using a PC with Windows 7.
    I have posted this question before, I need help, PLEASE

    If you go to the Bridge Preferences>File Type Associations what does it list as the default?
    If it doesn't list Adobe Photoshop CC you can use the Browse button to set it to
    the Photoshop.exe in C:\Program Files\Adobe\Adobe Photoshop CC

  • TS3704 How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    How are you supposed to fix "The feature you are trying to use is on a network resource that is unavailable" alert appears when you remove Apple software in Windows if it doesn't work on Windows 8 or 8.1???

    See Troubleshooting issues with iTunes for Windows updates. You may have to uninstall what you can, reboot and delete the named folders, then reinstall.
    tt2

Maybe you are looking for

  • How to sort out error downloading perpetual license of the CS6 Design Standard for MAC: JRun Servlet Error 413  Header Length too Large?

    How to sort out error downloading perpetual license of the CS6 Design Standard for MAC: JRun Servlet Error 413  Header Length too Large? Just bought the perpetual license online - student-teacher version. Received email confirming my eligibility and

  • How to get current volume of iphone

    I want to get the current volume of iphone. I did some searches and found MPVolumeView which is used to adjust the volume. But it can't be used to get the current volume. Is there a way to get that value? I don't want to adjust the volume, just want

  • 7.0.1 wont connect using multipule tabs

    -------------------------------------------------------------------------------- Running about 7 tabs open at startup, this has always worked fine, here is the problem and the sequence of events leading up to hope. Any suggestions would be appreciate

  • Replacing a G5 with a MB?

    I'm almost at the point of replacing my old G5, but have a few reservations. I am a fairly average user of photo editing software, a bit of Aperture, some iPhoto and other apps on occasion (such as PSE4 or Gimp). I only add about 2000 images a year t

  • Set work area shortcut not working Premiere CC

    Hello, I'm having a weird issue, the set work area shortcuts aren't working on Premiere CC on my Mac.  Nothing happens when I hit the shortcut combo, which are set for option [ and option ] under the keyboard shortcut menu.  The shortcuts work as exp