Does break work for result set ?

while(rs.next())
if(true)
break; // does break work for result set ?
break is not working when i wanted to go out of while loop like above. how can i go out when condition matches ?

Well this is what i learned and i'm learning in
school.So what does your school tell you is the only correct indenting style?
The "break or not" discussion has been around ever since, and there is no agreed-upon solution that says "always do it" or "never do it".
You don't have to write nice code. The important
thing is that you code's performance! This is complete bullshit.
You client will never read your code, (only if it is
open source or a script).But the guy who maintains it. Sorry, but this is really ignorant. Unclear code will lead to bugs that are difficult to find and resolve. "Optimizations" will lead to more bugs.
This all leads to longer development time, late project and increased project and maintenance costs. Ask your customer if he really wants that.

Similar Messages

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • BUG in iOS7: Post iOS7 upgrade, search option does not work for "Messages". If you want to search a contact name in Messages who is way below the list, the search will not yield any result.

    BUG in iOS7: Post iOS7 upgrade, search option does not work for "Messages". If you want to search a contact name in Messages who is way below the list, the search will not yield any result.

    These are user forums. You are not speaking to Apple here. Report your problem at Apple Feedback.

  • Select All in a table does not work for Drag and Drop

    Hi. I am using Jdeveloper 11.1.1.2 but have also reproduced in 11.1.1.3.
    I am trying to implement drag and drop rows from one table to another. Everything works fine except when I do a Select All (ctrl-A) in a table, the table visually looks like all rows are selected, but when I try to click on one of the selected rows to drag to the other table, only the row I click on is dragged.
    I tried setting Range Size -1, fetch mode to FETCH_ALL, content delivery to "immediate" but nothing works.
    I even have reproduced not using a view object but just a List of beans with only 5 or 10 beans showing in the table.
    Does anyone know how to get Select All to work for a Drag Source?
    Thanks.
    -Ed

    Frank-
    OK, thanks for looking into that. I also submitted this service request, which includes a simple sample app to demonstrate the problem:
    SR #3-2387481211: ADF Drag and Drop does not work for rows in table using Select All
    Thanks again for the reply.
    -Ed

  • HT5557 The ibooks dictionary works fine for my iPhone 5, but it does not work for my iPad 2. Is this fixable?

    The iBooks dictionary works fine for my iPhone 5, but it does not work for my iPad 2. Is this fixable?

    I went to the Audio store to see about getting a surround sound and the salesperson asked me why I wasn't using AirPlay, he said it was better than the Bluetooth, better quality. So I do have AirPlay on my Sony and I installed the app on my iPhone 5 but they can't find eachother.......when I try looking for my iPhone on my receiver it does not show it. The Sony display works through my TV, the set up screen is there but it says no devices found. Like I said, the Bluetooth finds the iPhone and works ok, but the AirPlay does not.....looking at the manuel it says that the AirPlay will recognize my device (iPhone 5) but it does not..........

  • The operation is not allowed for result set type FORWARD_ONLY

    Hi,
    I am trying to use scroll insensitive resultset in following manner-
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet rs = stmt.executeQuery("some sql here");
    rs.last();
    but the rs.last() throws this exception-
    com.sap.dbtech.jdbc.exceptions.SQLExceptionSapDB: The operation is not allowed for result set type FORWARD_ONLY.
         at com.sap.dbtech.jdbc.ResultSetSapDB.assertNotForwardOnly(ResultSetSapDB.java:2725)
         at com.sap.dbtech.jdbc.ResultSetSapDB.last(ResultSetSapDB.java:557)
    Database version: Kernel    7.5.0    Build 019-121-082-363
    Driver Version: MaxDB JDBC Driver, MySQL MaxDB, 7.6.0    Build 030-000-005-567
    This used to work with 7.5 version driver. Why this is failing with 7.6 driver, any clues?
    Thanks,
    Vinod

    Hi Vinod,
    due to performance improvement when using forward only cursor we changed the default for the resultset type from TYPE_SCROLL_SENSITIVE to TYPE_FORWARD_ONLY starting with JDBC driver version 7.6. So I guess the exception comes from a statement where you didn't set the resultset type while creating it. Please check if all of the statements that you want to be scrollable have set the correct resultset type.
    Regards,
    Marco

  • CF10 64bit  Apache connector (mod_jk.so) does not work for Apache2.4.3 (windows)

    CF10 64bit  Apache connector (mod_jk.so) does not work for Apache2.4.3 (win64), where can I get a module that works?
    I get this error from Apache :
    C:\www\Apache2.4\bin>httpd -t
    httpd: Syntax error on line 741 of C:/www/Apache2.4/conf/httpd.conf: Syntax error on line 2 of C:/www/Apache2.4/conf/mod_jk.conf: Cannot load C:\\ColdFusion10\\config\\wsconfig\\1\\mod_jk.so into server: The specified procedure could not be found.
    I have already tried manually extracting the pre-built mod_jk22.so from the wsconfig.jar with same results.
    If I switch to Apache 2.2.22 64bit, it does work.  what I need is to be able to run on Apache 2.4.

    Please check out this link.
    http://rob.brooks-bilson.com/index.cfm/2012/2/21/Installing-ColdFusion-10-with-Apache-on-W indows
    In this link, they are configuring with Apache 2.2 only.
    When we were working colfusion 9 with Linux and apache, we had the same problem, it will work when it connect to Apache 2.0 but not with Apache 2.2 version.

  • SM36/37: Specification "After Job" does not work for Daily "periodcity"

    I reviewed http://help.sap.com/saphelp_nw04/helpdata/en/20/2d513897110872e10000009b38f889/content.htm, which states what I am trying to do should work, but it does not.
    Here's the deal:
    1.  I have two jobs: "A" and "B".
    2.  "A" runs Daily.
    3.  I set-up job "B" to run "After job" "A" in my SM36 definition.
    Job "B" will run the next day, but never runs again after that even though job "A" continues to run "Daily" as it should.
    Further info:
    1.  We have "Event-triggered" jobs that run fine, but the "After Job" designation doesn't seem to work ongoingly.
    2.  I can review both jobs "A" and "B" for any "Predecessor" or "Successor" jobs, and, the first jobs to run after the initial set-up DO reference each other (in other words, let's say I schedule job "B" to run "After job" "A" on Tuesday.  After Tuesday's run, Job "A" sees job "B" as it's "Successor" job and job "B" sees job "A" as it's "Predecessor" job), but the definition doesn't last into the next day ONLY FOR JOB "B" (as I mentioned, job "A" always runs fine).
    3.  I can't set the "periodcity" for job "B" because, once I flag it to run "After Job" "A", the "period" options disappear.
    4.  One final tidbit: the variant for job "B" has a "key date" specified so the date is dynamic for each day the job runs.  I can set up job "B" to run "Daily" with this variant and it runs fine, but I wanted it to run AFTER job "A" so it never runs if job "A" doesn't run.  (At this point, it's becoming a matter of principal!)
    Here's my question:
    Why won't job "B" continue to run "Daily" after job "A" (a "Daily" job) runs?
    Thanks in advance,
    Lara

    Please close this thread since you posted the same question here:
    [SM36/37: Specification "After Job" does not work for Daily "periodcity"|SM36/37: Specification "After Job" does not work for Daily "periodcity";

  • Command for:  Access Mode for Result Set

    Hi
    Does anyone know if there is a command for "Access Mode for Result Set". 
    The default view for my characteristic in my query is "Characteristic Relationships".
    I would like to have a command button for the user to be able to change the access mode to "Posted Values"
    I have searched through all the commands but was unable to find this command.
    OR if it is not available does anyone know the XHTML that I could enter into the web template.
    Thanks in advance.
    Ian

    Hi
    Does anyone know if there is a command for "Access Mode for Result Set". 
    The default view for my characteristic in my query is "Characteristic Relationships".
    I would like to have a command button for the user to be able to change the access mode to "Posted Values"
    I have searched through all the commands but was unable to find this command.
    OR if it is not available does anyone know the XHTML that I could enter into the web template.
    Thanks in advance.
    Ian

  • MB Air two finger scroll does not work for a user but does for another

    Hi
    MB Air. 10.9.3.
    Defective Trackpad was just replaced. Two finger scroll does not work for the main user. I made a test log in and two finger scroll works. I booted off an external drive and two finger scroll works.
    I pulled all of the user preferences out, logged out and in and still does not work. Zapped PRAM. Checked all trackpad settings. No luck.
    Tried this in Terminal:
    defaults write -g com.apple.trackpad.scrollBehavior 2
    Any ideas?

    This sounds strange but check the settings in Settings>Accessability for the track pad. I belive your problem lies there not in Track Pad set up in Settings.

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • How do I fix my volume when ringing it works but it does not work for games and movies

    How do I fix my phone volume it works when the phone rings but for all the other things the volume does mot work for example games and other sounds don't work.

    Hm, it sould like liquid damage to me.

  • GUI_DOWNLOAD does not work for background printing

    Hi,
    Need some help urgently.
    Function moduel GUI_DOWNLOAD does not work for background printing. I want to know how this issue can be handled or we have to use some other function module.
    We are using this in a report and i get the error dump OBJECTS_OBJREF_NOT_ASSIGNED when we run this report in background.
    Kindly suggest.
    Best Regards,
    Abbasi

    you can not use gui_download in background.
    Try searching first, this thing has been posted a thousand times already

  • Hi i want to send an ipad of a gift to a friend in italy, can it be done? will the wifi and 3g still work? also how does it work for a warrenty?

    hi i want to send an ipad of a gift to a friend in italy, can it be done? will the wifi and 3g still work? also how does it work for a warrenty?

    WiFi will work, cellular will work but they may not be able to access LTE, they will have to send it back to you for the warranty work.

  • Link does not work for-End-of-Sale and End-of-Life Announcement for the Cisco Secure Access Control System 5.4

    Link does not work for
    End-of-Sale and End-of-Life Announcement for the Cisco Secure Access Control System 5.4
    How do we get Cisco to fix?
    see attachment

    Give it a couple of days - it looks like they just sent out the notification before the notice was published on the public page.
    Once the ACS 5.4 EoS/EoL notice is published you should see it linked from this page.

Maybe you are looking for

  • Dvd menu like windows dvd maker "video wall"?

    I recently bought premiere elements 10 and I'm just learning how to use it. My question:  how can I produce an effect equivalent to the "video wall" dvd menu that windows dvd maker has? I think I can make something like this using the PIP function. 

  • TS1538 hi guys!merry christmas! i hope you can help me how to reinstali the apple mobile device in my  computer..

    hi guys!merry christmas! i hope you can help me how to reinstali the apple mobile device in my  computer..

  • Unable to connect to Lotus directory.

    I have written a java code to connect to Lotus directory. When I compile the code following exception is thrown "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an

  • SAPOSS connection / CPI-C error CM_DEALLOCATED_ABEND

    Hi, We are running SAP R/3 4.5B on the iSeries and have a problem with the SAPOSS connection. / CPI-C error CM_DEALLOCATED_ABEND We deleted the RFC connection SAPOSS and recreated it via note 33135. We applied oss notes 766505 and 455709 trying to fi

  • Upgrading for free

    I have my original Mac Mini (late 2009) that still has iLife '09. I have upgraded to Mavericks but I am still required to pay for the update to iPhoto and iMovie in the App Store. I thought all of the iLife products became free after the announcement