How to override the default delete operation

Hi,
I am new to Jheadstart, java coding for that matter.
Here's my situation,
I have a view which is based on a function (function returns a collection).
I have created instead of triggers on this view to perform insert/update/delete operations.
All these DML operations work as expected in Oracle database.
Now, I created an Entity object and a view object on this view in my jheadstart project.
When I run this Jheadstart application my insert and search operations run fine but update and delete operations fail with JBO-26080 error.
The underlying oracle error is "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc."
I know that delete and update operations work fine in Oracle and hence I would like to override the default Jheadstart operations. Can any body tell me how can I do it or point me in right direction?

Hi,
From the JHeadstart Developer's Guide, chapter TroubleShooting - Problem Assessment:
If you are getting a JBO error (Business Components for Java error), try to perform the same data retrieval or data manipulation action using the BC4J Tester. You can
invoke the tester through a right-mouse-click on the BC4J application module. If you get the same error using the BC4J tester, the problem is in the BC4J object definitions. If you added business rules, or other custom code to your BC4J objects that executes during your data retrieval or data manipulation action, you can debug this code line-by-line by running the tester in debug mode. You can also look up the JBO error in the JDeveloper online help, for each error possible causes and how to solve them are described.
It sounds to me like you will also get this error in the BC4J Tester. This means that the problem is not related to JHeadstart. You can go to the JDeveloper discussion forum http://otn.oracle.com/discussionforums/jdev.html and ask your question there without mentioning JHeadstart. Maybe there is some switch you can set in the BC4J object to let BC4J not use SELECT FOR UPDATE.
Hope this helps,
Sandra Muller
JHeadstart Team

Similar Messages

  • How to override the default height of tree component...

    Hi,
    Can anyone please tell me how to override the default height of <af:tree> component.
    Actual Problem:
    I have a PanelBox in which I have a ShowDetail component. ShowDetail contains Tree component. When I click on ShowDetail item the Tree component have to be displayed. But, PanelBox is expanding to TREE default height(27.27 ems) instead of expanding to exact height of Tree.
    How to manage this issue?
    Thanks
    -Sukumar

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • How can i override the default create operation UIX ADF STRUTS

    Hi dear forum:
    How can I customize the default create operation?
    I need to calculate a value and put it into the new row created.
    Please help me!!!

    Hi,
    if you are usimng Business Components,
    1. Select the Entity Object and double click on it
    2. Select the Java node
    3. Check the "Create Method" checkbox
    4. click OK
    5. Open the <eo name>Impl.java file created (need to see this in System navigator view)
    6. Search for the set<Attribute name>() method and add your calculation for this attribute
    Frank

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • How to override the default "required" attribute for the UIComponent?

    Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
    if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
    I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
    //whatever the name of the method i'm overriding....
    String value = (String)value;
    if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
    value = value.trim();
    if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
    How can I go about doing that?
    Thank you.

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • JRE 1.4.2: how to override the default xml parser?

    Hi all,
    I have JRE 1.4.2_03 and I need to replace the default xml "crimson" parser with xerces because the former one doesn't properly handle utf-8 BOM.
    Does anyone have an idea where I should look at for this kind of configuration?
    I skimmed thorugh the oracle docs but couldn't find anything.
    I found a link describing how to change the xml parser in OC4J, but my understanding is that this has little to do with what I am looking for.
    I need to force Saxon 8.6.1, that is invoked by means of java.exe from the command line, to pick up the right xml parser.
    Has anyone else tried this out already?
    Alternatively, is it safe to install JRE 1.5 in place of JRE 1.4.2 on a Oracle 10.1.0.4 database?
    I am told that JRE 1.5 uses a different xml parser that should fix my problem.
    Bye,
    Flavio

    I sorted this out myself.
    Downloaded the latest stable xerces binary (2.5.0) from http://xml.apache.org/dist/xerces-j/
    Then I extracted xercesImpl.jar and put it under:
    %ORACLE_HOME%\LIB\endorsed
    I had to create the endorsed folder as it didn't exist.
    Then, when invoking Saxon using java.exe, I added the following switch:
    -Djava.endorsed.dirs=%ORACLE_HOME%\LIB\endorsed
    That's it.
    You can find some background info on:
    https://jaxp.dev.java.net/Updating.html
    Bye,
    Flavio

  • How to make the default shutdown operation to be a forced one?

    Just recently I clicked on shut down and went with my business, only to find out on return that OS X didn't shutdown the laptopt because "firefox prevented" it from doing so. What a BS.
    Is there a way to change the default parameters for the shutdown execution?

    No.
    You could go into the Terminal and use the "sudo shutdown -h now"

  • HT201448 How to override the default order of Websites, Wiki, and Xcode services?

    Greetings,
    On my Mac server, I have the Websites, Wiki, and Xcode services all enabled but, as detailed by the Apple support article, Xcode takes precedence over all, or Wiki if Xcode is disabled.
    What I would like to see is a virtual host (e.g. wiki.myhost.com) and/or directory alias (www.mydomain.com/xcode) that opens the home page for the respective service while the default (e.g. www.mydomain.com) goes to the home page for mydomain.com.
    I'm no httpd configuration expert but I expect some manual httpd configuration will be required.  Any help appreciated.

    At the end, I decided to adopt Firefox add-on "Classic Theme Restore"—amazing output. I guess it is impossible to get such a space saving but full furnished solution somehow else.

  • How to override the 'default' partition in composite.xml - urgent

    All,
    Version: 11.1.1.4
    I have created a simple BPEL A which invokes another BPEL B which is deployed to 'default' partition. In the composite.xml of BPEL A I can see the WSDL location of BPEL B as *"http://localhost:7001/soa-infra/services/default/BPELB/BPELB.wsdl"*. I noticed that the name of the partition (i.e in our case its 'default') is hardcoded in the wsdl location. During deployment I want to override to other partition, how I can achieve this?
    thanks
    sen

    If you want to change the partion name at run time then used Token ,value concept and define it in build.xml
    For Example
    <target name="replaceAllValues">
    <input
    message="Please enter full path of the file directory:"
    addproperty="dirPath"/>
    <replace dir="${dirPath}">
    <replacefilter
    token="OldValue."
    value="Newvalue"/>
    </replace>
    </target>
    Call the above target from ant build.xml before you deploying the service.
    Regards,
    Tarak.

  • How to override the default SOAP envelope prefix?

    I have a Web service as an external reference. In run-time WebLogic generates SOAP messages with a default prefix <env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/”…>. Normally this is fine. However the Web service required a prefix as <soapenv:…>. How can I have WebLogic generate soap envelope prefix as soapenv instead env?

    hello!
    It's possible. You must implement handler and change envelope and body prefix. Here is example:
    public class WsHandler implements SOAPHandler<SOAPMessageContext> {
    public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty =
    (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (outboundProperty.booleanValue()) {
    try {
    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
    envelope.setPrefix("soapenv");
    envelope.removeNamespaceDeclaration("env"); //remove old prefix
    envelope.getBody().setPrefix("soapenv");
    context.getMessage().saveChanges();
    } catch (Exception e) {
         throw new ProtocolException(e);
    }

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • How to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage too, but it isn't solved. Thanks

    dear, there.
    how to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage to google too, but it isn't solved. Thanks

    Clarification:
    I believe now you potentially lose all extensions, plug-ins when you use the new reset function, but you will let me know.
    If that is the case, your find corrupt file method maybe better. However, I reviewed the two help articles and there appear to be more files than just the delete search.json file and a possible search.sqlite file in the Firefox Profile Folder. I am confused. Then I have to find the folders. I think help articles mentioned how to find the profile containing the files, but not sure.

  • How to change the default KeyBinding of the TableView ?

    how to change the default key binding of the TableView ?
    When press Enter key on a editable TableView, the default action is to make the selceted cell to a editing state. I want to know if there is any way to make it select the right cell and wouldn't change the editing state of the selected cell when i press Enter key.
    here is something i've done.
          table.setOnKeyPressed(new EventHandler<KeyEvent>() {
                   @Override
                   public void handle(KeyEvent e) {;     
                        table.requestFocus();
                        KeyCode code =e.getCode();
                        if(code == KeyCode.ENTER){
                             try {
                                  new Robot().keyPress(java.awt.event.KeyEvent.VK_RIGHT);//XXX
                             } catch (Exception e1) {
    Thanks,
    ahiwoo
    Edited by: 911579 on 2012-2-1 上午3:15
    Edited by: 911579 on 2012-2-1 上午6:26
    Edited by: 911579 on 2012-2-1 上午6:41

    thanks jsmith. now it works well.
         table.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler<KeyEvent>() {
                   @Override
                   public void handle(KeyEvent e) {
                        table.requestFocus();
                        KeyCode code =e.getCode();
                        if(code == KeyCode.ENTER){
                             try {
                                  new Robot().keyPress(key);//XXX  javafx  has no robot for key type...
                             } catch (Exception e1) {
                             e.consume();
              });

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • How to change the default password file's name and path when the database created?

    how to change the default password file's name and path when the database created?
    null

    Usage: orapwd file=<fname> password=<password> entries=<users>
    where
    file - name of password file (mand),
    password - password for SYS and INTERNAL (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
    There are no spaces around the equal-to (=) character.

Maybe you are looking for

  • I have a new pc how can i find my old music

    i have a new pc how can i find my old files

  • Metadata not writing to jpgs

    We keep all of our photos on a Windows Home Server 2011 shared folder. Previously, we kept all our photos in a WHS v1 shared folder and it did not exhibit these issues. The issue: Metadata not writing to jpgs We manage all our photos with Adobe Light

  • Apple Care question for my Powerbook

    Hopefully here is the right place to ask that.. I have a Powerbook which is obviously out of warranty And one of my keys popped off and I was making a research to find a solution fixing that.. I ended up with the apple's support page . It was mention

  • How do I revert to a previous iTunes library?

    This morning my iTunes showed that the last thing I imported was back in mid-December but I have imported many disks since then. I found the music files in my iTunes Music folder, so it's not like they got deleted or something. It looks like my iTune

  • Executing a boolean condition stored in component variable

    Hi there everyone (posted this earlier on my browser but didn't seem to come thru, so apologies if this appears twice) I have created a component variable called booleanCondition which contains an expression like (a || b) I would then like to perform