Override doDML() and preserve returning key

Hi OTN,
Situation:
I have a composition assotiation between entities Master and Detail with Cascade Update Key Attribute enabled.
Master's PK is DBSequence type populated by DB trigger.
MasterVO's and DetailVO's rows are inserted in a single transaction and cascade update key for DetailVO works fine.
Problem:
Now I need to override Master's doDML() method to call a DB procedure which performs INSERT with some additional logic.
After I override doDML cascade update key doesn't work any more for Detai - I get error message as if I would tru to insert a Detail row with NULL as a key.
I should write some RETURNING code in SQL procedure or smth?..
Need an advice.
Thanks.
JDev 11.1.1.3, ADF BC

Hi ILya,
It seems that ur Details Entity is getting updated first before the Master..........
For check the same just override the details Entity doDML() method and run the App in debug mode....
Keep breakpoint in both the doDml() methods and check which one is firing first........
If so then u have forcibly make the master to post the changes first....... follow the below code for achiving the same..........
<<ur Master Entity Impl Name>> masterImpl = get<<getter of the Mater Entity Impl Exposed in ur Details Entity>>();
if (masterImpl != null && masterImpl.getPostState() == STATUS_NEW) {
masterImpl.postChanges(e);
Regards,
Suganth.G

Similar Messages

  • Return key only inputs "b$"

    Howdy,
    I think my phone caught the flu.  A couple of weeks ago many of the buttons would only return "b$," including the alt key, the return key, and some of the letters.  As you can imagine, trying to type  "Hi, how are you doing?" and it popping out "Hb$b$n how are you dob$ng$v" is really obnoxious.  I restarted  and took the battery out of the stupid thing a million times, and it didn't get better.  Then one day it was just started working again.  Now, a couple of weeks later, the alt key and the return key are doing it again. Has anyone come upon this before and does anyone know how to fix it?
    It is an curve 8310, with google maps, weatherbug, gmail, facebook and the WSJ app installed.
    Thanks in advance,
    DT
    Solved!
    Go to Solution.

    There is very likely no chance that it is a software issue.
    There is a slight chance that it is a hardware issue. If you are sure of this, return it for a warranty replacement.
    There is a higher chance that it is a moisture issue. Only because I have seen this same problem too many times before.
    Dry it out. In 3-5 days you will know for certain. If I am wrong, nothing is lost.
    If it is some moisture damage and you don't dry it out, the device can be lost.
    Message Edited by JSanders on 04-13-2009 02:02 PM
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I have office for mac and my return button just keeps on takeing me to the next page as does any letter. I can only basicaly do one line, please help?

    I have a macbook pro and my return key keeps on taking me to another page, I can only basically do one line per page can anyone help?

    Office is a Microsoft application and your issues may be best handled at their web site support.

  • Backspace and return keys make phone inoperable

    Whenever I try and try to make a correction using the backspace, the backspace does not stop and erases the entire message. Or if I hit the return key, it doesn't just return to the next line, but repeatedly returns making an infinite number of new lines.
    Basically this problem makes the text, messaging, emails and so on useless - I can read things, but can't use the key board at all.
    I have tried every setting I can find on the phone, nothing seems to correct this.
    What is the fix?
    Solved!
    Go to Solution.

    I had a similar problem with the backspace and the letters A and P it was so annoying.  
    The fix is simple:
    Go into Settings > Accessibility > Magnify > OFF
    This should solve the problem.  If not then you have a different kind of issue.
    Hope it works

  • RETURN/ENTER and SHIFT keys no longer work, and my number keys only work as numbers - no longer do they serve as exclamation points or dollar signs etc.

    After downloading OS X Yosemite my RETURN/ENTER and SHIFT keys no longer work, and my number keys only work as numbers - no longer do they serve as exclamation points or dollar signs etc. PLEASE HELP

    Does this bad behavior persist when logging in as a different user, e.g., Guest?  Does it persist when starting up in Safe Mode?

  • Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.

    All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
    Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
    I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere.

  • I have been having an problem recently where my shift key will sometimes type capital Y for o apparent reason, and also my return key will enter a backslash. how can I correct this? it happened to me once before. I had to reinstall clean

    Recently my shift key has been for some unknown reason ben typing capital "y" when I use it, and YYI  don't know how to stop it. Also my return key has been adding a backslash after the return, and I am unsure how to remove that as well, I had this problem aout 6 months ago, and I had to wipe the drive and do a clean install before it fixed. I would not want to do that again, if at all possible.

    Have You found a fix for this(question mark)

  • The keyboard for my iMac 9, 1 got wet and is not working correctlly. Delete,return, and some other keys not functioning. In all caps including numerals. I've left it to dry for a few days but still will not work. Computer now in Safe boot mode and I c

    The keyboard for my iMac 9, got wet and is not working correctly. Delete ,return, and some other keys not functioning. In all caps including numerals. I've left it to dry for a few days but still will not work. Computer now in Safe boot mode and I can't login due to all caps and numbers being symbols. Is there anything I can do?

    Buy a replacement keyboard. They're only $50-65 USD.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • InDesign CS5 - Enter and Return keys give unexpected results

    I've been using CS5 for just a few days (Mac Pro, Mac OS X 10.6.3). I've noticed that the Enter and Return keys aren't always behaving as expected. Enter doesn't give me a column break, shift-Return doesn't give me a line break but a new paragraph, and more often than not I can't select the default option in a dialog with either Return or Enter. I've just read cpsid_84345, which says this is an issue in German and Swedish language versions, but I'm using English. The 7.01 update doesn't seem to be available. Any advice?

    That the KBSC files are XML doesn't guarantee faultless migration from one version to the next, probably because Adobe just forgot to cope with importing KBSCs from previous versions. It's great that InDesign offers you such flexibility with the KBSCs, but it's terrible that the implementation has been so sloppy in at least the three last versions (maybe earlier versions, too, but I try to repress the memories).
    Some people have been asking Adobe to make KBSCs scriptable. This would enably you to maintain a small database with KBSCs which a script could read and feed into a new version of InDesign, or redo a KBSC file after it has become corrupt, or whatever minor or major mishap.
    The more people ask for this the better: go to http://www.adobe.com/support/feature.html and request script access to the KBSCs.
    Peter

  • I accidentally pressed "Return" key and it opened around 100 finder windows. Now it won't close and when I right click on finder tab it says application not responding.

    I accidentally pressed "Return" key and it opened around 100 finder windows. Now it won't close and when I right click on finder tab it says application not responding.

    Iv'e tried that but that won't work either. Help please.

  • My return key is sticky as though something is under it.  Can i pop it off somehow and clean underneath?

    my return key is sticky as though something is under it.  Can i pop it off somehow and clean underneath?

    If you pop it off you may not be able to reseat it properly.
    Better to get a can of compressed air and aim just around the edges of the key.
    Most computer or office stores carry cans of compressed air for cleaning keyboards.

  • Curve w/ paint coming off return key and call key

    curve w/ paint coming off return key and call key...anyone else? i don't think being 6 mo old it should look yrs old! by the way u have to replace the intermediate board...
    o z
    oz
    in god we trust
    god bless the world

    Nope, mines good! IF you have time on warranty maybe a replacement?
    Just a thought.
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

  • Overriding getInputMap and getActionMap

    Hi
    I am having a problem overriding the default behaviour of enter key in
    a JEditorPane.
    This is what I have done
    CustomEditorKit kit = (CustomEditorKit)(getEditorKit);
    KeyStroke ks = KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0, true );
    getInputMap().put(ks, "insert-enter");
    getActionMap().put("insert-enter",kit.insertEnterAction);
    The behaviour I am getting is DefaultEditorKit's enter action followed
    by my custom action. Anyone with any hints ?

    ...no, not exactly, it must be
    am.remove([originalEnterKeyName]); where
    [originalEnterKeyName] would have to be found out by
    finding the appropriate action name from the array
    returned by am.allKeys();
    UlrichOK, I found my mistake. The key stroke I had, needed to be created for
    Key Pressed and not for key released. Once I did that the same code
    worked.
    So the code must have been.
    CustomEditorKit kit = (CustomEditorKit)(getEditorKit());
    KeyStroke ks = KeyStroke.getKeyStroke( KeyEvent.VK_ENTER, 0, false );
    getInputMap().put(ks, "insert-enter");
    getActionMap().put("insert-enter",kit.insertEnterAction);
    As far as Stas' suggestion of overriding insertString goes, I didn't
    want to take that route. If fact, I had that piece of code in place
    when I posted this question and wanted to remove it due to various
    reasons as it is not the right thing to do from the design perspective.
    Thanks for your response.
    Narayanan

  • Unbind Return key of tab control

    I don't see a way to undo the binding of a <Return> key to a Tab Ctrl? Short of replacing the Tab ctrl, anyone have a soln?
    This was done by the prior developer (apparently for no good reason). I spent at least an hour trouble shooting why the <Return> key was stuck on a FP boolean even after assigning other ctrls keyboard focus. This binding overrides any key focus properties set during runtime.
    Attachments:
    UnBindTab.png ‏15 KB

    Darin.K wrote:
    Like you I find it a bit annoying when somebody else assigns key bindings, and I am giving the stink-eye to the system ok button right now.
    ... just for those other readers who haven't seen this idea .....
    LabVIEW Champion . Do more with less code and in less time .

  • 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.

Maybe you are looking for

  • How to assign a default value to a query variable

    If I create a query, and it contains a variable that I want the user to input, can I also assign a default to that variable which the user will see when they run the query? If they make no selection it would use the default instead of the user input?

  • ISE max-login-ignore-identity-response

    Hi forumers' Greeting, I had a question regarding ISE login identity response. In my POC deployment, i'm using a single testing domain user account at the testing Active Directory. I able to login to the testing's secure network using the same user c

  • Sending a Socket Object via a Socket :P

    eek Sorry all! I accidentally posted in "Java Programming" 1st... I don't know how to delete my post http://forum.java.sun.com/thread.jspa?threadID=5261765&tstart=0

  • Problems with LOVs

    I'm working with ADF 11g, and I have a problem when i work with LOVs. I have a table in my database which has a composite primary key of 4 fields (columns). I have also created a viewObject for this table and i have added a list of values to each fie

  • Re: Web Connection Timeout

    I have a Nokia C6-01 and I have a problem when I connect to WLAN at my office. It establishes connection, but when I start browsing it hangs and I get an error message "Web: Connection time-out".  When I try connecting the same in some other phone, i