GetDBTransaction method in EntityDefImpl, exists or not?

According to this document (http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html), should exist the method getDBTransaction on EntityDefImpl, but it is not there on JDev 10.1.2.
How can I access the current transaction on a EntityDefImpl subclass then?

I think that must be a typo. If you look at the top of the table, it states,
"The EntityDefImpl class is a singleton, shared metadata object for all entity objects of a given type in a single Java VM."
That means that an EntityDefImpl instance isn't tied to a signle transaction (but rather to all transactions being handled by the VM), so there's no way you could get transactional information off of it (or from a method within it, unless you pass a transactional object in as a parameter).
If you want to put a method in a class that is shared by all entity object instances of a given type for a given transaction, it should go in an EntityCache subclass, not an EntityDefImpl subclass.
If you were hoping to override the entity creation process in such a way as to take the current transaction into account, you need to override EntityImpl.create(), not an EntityDefImpl method.
Hope this helps,
Avrom

Similar Messages

  • How to know if the path given exists or not???

    i have a string containing a path (of a directory or a file(.pdf)
    i want to test if the path given exist in the hard disc or not i have tested with file.canRead but there is no results
    please help???

    the path are estracted from a database and i will check if these patwh exists or not in the hard disc
    this is the method ; it read from the 1 tabe ,the second (and test if inthis path there is any .pdf),the third (and test if inthis path there is any .pdf),
    public void parcours()
    /*2*/ {
    String ParcDep="select code_dp from departement" ;
    String ParcOrg="select code_or from organisme o,departement d where d.code_dp=o.code_dp and o.code_dp=? ";
    String ParcSor="select code_so from sous_organisme so,organisme o,departement d where so.code_or=o.code_or and d.code_dp=o.code_dp and so.code_or=? ";
    Statement st=autentif.getStatement();
    try
    /*3*/{
    Connection connec=autentif.getConnection();
    PreparedStatement ps = connec.prepareStatement(ParcOrg);
    PreparedStatement ps1 = connec.prepareStatement(ParcSor);
    ResultSet rsd = st.executeQuery(ParcDep);
    while(rsd.next())
    /*4*/ {
    System.out.println("boucle departement");
    String Dep=rsd.getString(1);
    String chem="c:\\Etats_insaf\\".concat(Dep);
    System.out.println(chem);
    String DepChem=chem.concat("\\");
    System.out.println(DepChem);
    ps.setString(1,Dep);
    ResultSet rso = ps.executeQuery();
    while(rso.next())
    /*5*/ {
    System.out.println("boucle organisme");
    String Org=rso.getString(1);
    System.out.println(Org);
    String chem1=DepChem.concat(Org);
    String DepOrgChem=chem1.concat("\\");
    System.out.println(DepOrgChem);
    File dirOrg=new File(chem1);
    /*System.out.println("le chemin de lorganisme est");
    System.out.println(dirOrg);
    System.out.println("esqu il existe :");
    System.out.println(dirOrg.exists());*/
    if(dirOrg.exists()==false){ System.out.println("le chemin de l organisme au dessus n existe pas");}
    else{/*11*/
    FilenameFilter filter = new FilenameFilter()
    public boolean accept(File dirOrg, String name)
    return name.endsWith(".PDF");
    String[] childOrgp=dirOrg.list(filter);
    System.out.println("le tableau");
    System.out.println(childOrgp);
    if (childOrgp == null)System.out.println("pas de doc pdfdans org");
    else
    {/*6*/
    System.out.println("aaaaaaaaaaaaaaaaa");
    System.out.println(childOrgp.length);
    for(int i=0;i<childOrgp.length;i++)
    {/*7*/
    System.out.println("le chemin du doc .pdf dans lorganisme est");
    System.out.println(childOrgp);
    System.out.println("esqu il existe :");
    System.out.println(dirOrg.exists());
    Statement stat=autentif.getStatement();
    String reqnum="select cod_ed.nextval from dual";
    ResultSet rsnum=stat.executeQuery(reqnum);
    rsnum.next();
    int num1=rsnum.getInt(1);
    System.out.println(num1);
    String num= Integer.toString(num1);
    System.out.println("num");
    System.out.println(num);
    System.out.println("bbbbbbbbbbbbbbbbbb");
    String filename = childOrgp;
    String nom=DepOrgChem.concat(filename);
    System.out.println("oooooooooooooooo");
    System.out.println(nom);
    String typef1=filename.substring(0,filename.indexOf("."));
    int lg=nom.length();
    String nomfin=nom.substring(3,lg);
    String req="insert into etat_d'edition (code_ed,path_ed,taille_ed,telecharger_ed,code_te,code_or,code_so) values '"+num+"','"+nomfin+"',null,null,'"+typef1+"','"+Org+"',null )";
    System.out.println(req);
    st.execute(req);
    }/*7*/
    }/*6*/
    ps1.setString(1,Org);
    ResultSet rss = ps1.executeQuery();
    while(rss.next())
    {/*8*/
    System.out.println("boucle Sous organisme");
    String Sor=rss.getString(1);
    System.out.println(Sor);
    String chem2=DepOrgChem.concat(Sor);
    String DepOrgSorChem=chem2.concat("\\");
    System.out.println(DepOrgSorChem);
    File dirSor=new File(chem2);
    System.out.println("le chemin du sous organisme est");
    System.out.println(dirSor);
    System.out.println("esqu il existe :");
    System.out.println(dirSor.exists());
    if(dirSor.exists()==false){ System.out.println("le chemin de l organisme au dessus n existe pas"); }
    else{/*12*/
    FilenameFilter filter1 = new FilenameFilter()
    public boolean accept(File dirSor, String name)
    return name.endsWith(".PDF");
    String[] childSor=dirSor.list(filter1);
    if (childSor == null)System.out.println("pas de doc pdf");
    else
    {/*9*/
    for(int j=0;j<childSor.length;j++)
    {/*10*/
    Statement stat=autentif.getStatement();
    String reqnum1="select cod_ed.nextval from dual";
    ResultSet rsnum1=stat.executeQuery(reqnum1);
    rsnum1.next();
    int num2=rsnum1.getInt(1);
    System.out.println(num2);
    String num1= Integer.toString(num2);
    System.out.println("num1");
    System.out.println(num1);
    String filename1 = childSor[j];
    String nom=DepOrgSorChem.concat(filename1);
    String typef=filename1.substring(0,filename1.indexOf("."));
    int longu=nom.length();
    String nomfin1=nom.substring(3,longu);
    String req2 ="insert into etat_edition(code_ed,path_ed,taille_ed,telecharger_ed,code_te,code_or,code_so) values('"+num1+"','"+nomfin1+"',null,null,'"+typef+"','"+Org+"','"+Sor+"' )";
    st.execute(req2);
    }/*10*/
    }/*9*/
    }/*12*/
    }/*8*/
    }/*5*/
    }/*11*/
    }/*4*/
    }/*3*/
    catch(Exception ex)
    System.out.println("ayayayayayayayaaaaaa");
    System.out.println(ex.getMessage());
    }/*2*/
    it must test if all the path extracted exists or not but it go to the first department (because it exist) then it stops (because the second department dosnot exist)

  • Read attachment exists or not

    Hii All..
    I have one Zprog with attachment option.
    to display attachment in report  i m using class CL_GOS_MANAGER and method START_SERVICE_DIRECT.
    my requirment is if attachment file exists change icon .
    so how to read attachment file exists or not?
    Thanks in Advance
    Regards
    Vshal

    You have to use the same method CL_GOS_MANAGER=>START_SERVICE_DIRECT, informing parameter IP_CHECK_AVAILABLE:
       call method lr_manager->start_service_direct
           EXPORTING
               IP_SERVICE = 'VIEW_ATTA'
              IP_CHECK_AVAILABLE = 'X'
          IMPORTING
             EP_AVAILABLE = lv_available.
    This way the service will not be launched and you will know whether there are attachemnts or not.

  • Not existing can not be inserted

    Dear Experts,
    I am getting an error message if I am trying to change Purchase Requisition.
    There are additional inserted item in the new  tbale 'LT_BAPI_NEW'.
    In the table  'LT_BAPI_OLD' are only two items. What is wrong there ?
    I have thought with this FM it is really possible to change a PReq.
    What can I do in this case ?
    The item 00030 is not existing can not be inserted.
    CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
          DESTINATION av_rfc_dest
          EXPORTING
            NUMBER                           = '1000115373'
          TABLES
            REQUISITION_ITEMS_OLD   = LT_BAPI_OLD
            REQUISITION_ITEMS_NEW = LT_BAPI_NEW
            RETURN                             = LT_BAPIRETURN
          EXCEPTIONS
            OTHERS                = 1.
    Friendly Regards
    ertas

    Hi,
    Refer to this link..[Help me about BAPI_REQUISITION_CHANGE!!!|Help me about BAPI_REQUISITION_CHANGE!!!]

  • I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?

    I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?  If so, how do I set this up?

    Yes.  Just redeem gift cards so that your own account always has a sufficient credit balance.  Here is how it works:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • How to check whether a Record Exists or not in Ztable

    Hi all,
    I have Req like this
    In ZTable i have 2 fields  * Legacy System , Legacy Material No*
    Environment Value is coming in one of the field in Idoc
    The logic is if the Environment Value is UK and a Record Exists on the ZTable for Legacy Sysyetm = Leg1 means i have send Legacy Material No , else  Send 01
    Please suggest me the process for this
    REgards
    Vamsi
    Edited by: Vamsi Krishna on May 19, 2009 5:31 PM

    Hi Michal / Aamir,
    Thanks for your replies.
    The ZTable is at R/3 side only, iam using RFC Lookup for this, but iam bit confuse on how to construct the logic to check whether there is a record Exists or not on Ztable
    Logic shld be If the Environment value is UK and a record exists on the Ztable for Legacy system "ABC" means then send Legacy material number else send 01
    In Table we will have the fields Legacy System   Legacy Material No  & Environment value is coming from Idoc itself( Ex: UK or US)
    Regards

  • Exist and not Exist

    Hello,
    I am doing following validation, when user does not have admin privileges, it should display error page - "User does not have admin privileges".
    SELECT 1 FROM apex_workspace_apex_users WHERE
    user_name =:P6_USERNAME
    AND is_admin = 'Yes'
    if
    I am confused over the use of "Exist" and "Not Exist" in the condition. Can you please help me out with this.

    I am confused over the use of "Exist" and "Not Exist" in the condition. Can you please help me out with this.The validation is successful if the query meets the condition:
    - "Exists": succeeds if the query returns one or more rows
    - "Not Exists": succeeds if the query returns no rows
    So for:
    SELECT 1 FROM apex_workspace_apex_users WHERE
    user_name =:P6_USERNAME
    AND is_admin = 'Yes'you need an "Exists" validation as you require the validation to succeed if there is a row that satisfies the condition that a user with that username and admin privileges exists, and return an error message if it doesn't.
    (Please update your forum profile with a better handle than "user9065603")

  • I have an IT guy coming to install apps but I need to password protect my existing apple notes. Is this possible?

    I have an IT guy coming to install apps but I need to password protect my existing apple notes. Is this possible?

    No, there's no passcode protection for Notes.

  • Error(23,19): method getName(java.lang.String) not found in class javax.swi

    Hi , when i try to run my program, i keep getting the error msg:
    Error(23,19): method getName(java.lang.String) not found in class javax.swing.JTextField
    I have checked the java API and it inherits from the awt.Component class and should be accessible via the jtextfield.
    I have tried the following:
    trying to initailise the JTextField at the start.
    Using getName works if i use it within the loop after setting the name.
    Does anybody know what i am doing wrong please?
    public class clsMember extends JPanel implements ActionListener {
        private JButton jbtnLog;
        private String surname;
        private JTextField txtItem;
        public clsMember() {
            super(new SpringLayout());
            makeInterface();
            surname = txtItem.getName("Surname").toString();
    private void makeInterface() {
         //code omitted
               for (int i = 0; i < numpairs; i++) {
                JLabel l = new JLabel(strLabels, JLabel.LEADING);
    this.add(l);
    //if the array item is salutation create a combobox
    if (strLabels[i] == "Salutation") {
    jcomSalutation = new JComboBox(strSalutation);
    jcomSalutation.setSelectedIndex(0);
    this.add(jcomSalutation);
    } else {
    txtItem = new JTextField(10);
    l.setLabelFor(txtItem);
    txtItem.setName(strLabels[i].replaceAll(" ", "")); //this is where the label is set and if i do a system.out it shows fine. getName works here too.
    this.add(txtItem);
    //code omitted

    If i have a loop that creates the jtextfields such as
                    txtItem = new JTextField(10);
                    l.setLabelFor(txtItem);
                    txtItem.setName(strLabels.replaceAll(" ", ""));
    this.add(txtItem);How is it then possible to assign to a string the value of a *specific jtextfield*. Lets say that one of these JTextfields has the name surname.
    How is it possible for me to writeString surname = surnamejtextfield.getText();                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Exception in Payment Proposal - Pmnt methods for this run are not specified

    Dear all,
    I want to ask if it is possible to run a payment proposal for AP transactions together with AR. The AR line items are used for clearing. Actually, this is the first time we execute proposal run which contains AP and AR respectively. And during the proposal, AR line item is an exception - 'Pmnt methods for this run are not specified in the master record or in item'. We already checked the master record, and there is a payment method. However, it was not captured during the payment proposal. Does it have something to do with the Document Type?
    Thank you once again for all your usual support.
    Regards,
    April

    To: Karthik, pushkaraj, JeCcas_DJ
    Thank you very much for your responses.
    I've checked already FBZP and Customer Master Record, payment methods were defined. Also, during the payment run, all line items have the same payment method, but only the AR transaction was not accepted.
    I think the problem is the same as what pushkaraj mentioned. We have payment method 'D' defined only for outgoing payments and not for incoming payments. I guess that is the problem.
    By the way, can I create another entry 'D' for payment method-incoming payments? Would there be conflict if I assigned same ID?
    Regards and thank you once again...
    April

  • How to check the given path is existing or not using sp_cmdshell

    Hi All,
       I am passing one path to the stored procedure, before executing code i want to check whether the path is given existing or not .
    By using sp_cmdshell we can know whether files are there are not but in case of my scenario i want to know the directory(folder) is existing or not because the source folder may be blank so it will not get the files there so stored procedure returning the
     File Not found as output.
    following is the code i am trying to retrieve this please suggest any other way to solve it.
    Create table #tableExists  (isValid varchar(255))
    Declare @path varchar(255)='DIR "C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA "/B'
    INSERT INTO #tableExists 
    EXEC xp_cmdshell @path
    select * from #tableExists
    Regards,
    Niraj Sevalkar

    You can try the other two undocumented extended stored procedures as well:
    --EXEC master.dbo.xp_subdirs @pathName
    EXEC Master.dbo.xp_fileexist @pathName
    EXEC Master.dbo.xp_DirTree @pathName,1

  • HT1918 I have a new visa debit card, I have tryed several times to put in this new information into my IPad. The program keeps telling me. There's a billing problem with a previous purchase. Please update your payment method. The program will not let me u

    I have a new visa debit card, I have tryed several times to put in this new information into my IPad. The program keeps telling me.
    There's a billing problem with a previous purchase. Please update your payment method.
    The program will not let me update, what am I doing wrong. rose165

    I would love to have a phone number to call someone with apple on this issue.

  • The pdfs that are produce in Word are very large. I need a method of compressing them variably - not just a quick reduction using the quartz filter.  Is their a suitable free compression programme,

    The pdfs that I produce in Word are very large. I need a method of compressing them variably - not just a quick reduction using the quartz filter.  Is their a suitable free compression programme,

    PDF Shrink for Mac
    Compress PDF – Reduce your PDF Online
    PdfCompress for Mac

  • How do u get a Java method to call itself? Not working here.

    How do u get a Java method to call itself? Not working here. I am using the "this" keyword. Thanks.
    Below, I would like to call checkIt method in itself.
    Ex.
    public class ABC {
    public String checkIt(String abc){
    if....
    checkIt(abc);
    }

    Assuming you are getting stack overflows (likely if you're unfamiliar with recursive calls), you need to put some sort of check condition inside the method so it doesn't call itself endlessly (AKA "infinite recursion").

  • How do I determine if a file exists or not on my PC?

    I thought this would be an easy one and maybe I am just making it harder than what it has to be. I simply want to search in a given directory to see if a file exists on not on my hard drive. Are there any ideas as to how to do this without causing an error if the file does not exist?

    Hi:
    In those situations what I've done till now is opening  the file
    and  close it inmediatly, if I find out and error while opening it
    I guess it doesn't exist. I know this is not the best way since there
    may be other reasons for the Open File Function to fail, but it has
    worked for me. Does somebody know a better way to do it?
    Regards
    Robst - CLD
    Using LabVIEW since version 7.0

Maybe you are looking for

  • Full screen issues prior to 11

    i always seem to find myself wondering, do developers even use their own products? i would assume they do, but i keep seeing stupid workflow issues or simple problems apple was always known for not having. i wont even begin to discuss the direction t

  • Bank Determination Ranking Order

    Hi Gurus,   I''ve configured 2 banks pointing to the same payment method in the same company code in FBZP.   Payment Method  Currency RankOrder  House Bank   C                         USD       1                USDP   C                         USD   

  • I guess there is Y2k glitch in Forte

    Hi All, I have my earlier version of product installed on client machine, before Jan 1, 2000. And today i re-installed my product with some upgrades, thro Environment console, on the same environment. It worked on the server machine properly, but whe

  • Facing Problem in Hierarchies on Multiprovider.

    Hi All, I am new to BW. Issue: I executed a report with selections in BeX, I am getting the output. Selections include 2 infoObjects and One Hierarchy. I got the report in BeX. But, When I executed on the Multiprovider/Cube on which the report is bui

  • InputComboboxListOfValues - Code instead of Description is displayed after selection

    Jdeveloper version 11.1.1.6 The table CNTRYMAST has the fields "CountryCode & CountryName", while the data tables has the field "CountryCode". I want to create a LOV for selecting countries in a form for the data tables. When I use selectOneChoice co