Find the name of the underlying table for ViewObject in AMImpl

Hi all

I have a method where I would like to extract the name of the underlying table based on top of which I have my ViewObject in my AMImpl datamodel. Is there a way I can do?

Thank you

User,

In general, non - case because display objects can be based on arbitrary SQL queries that have more than one table. If the ViewObject is based on entity objects, you can call getEntityDefs() on the VO then getSource() on the EntityDefs to get the source of table names.

John

Tags: Java

Similar Questions

  • How to find the child level for each table in a relational model?

    Earthlings,

    I need your help, and I know that, "Yes, we can change." Change this thread to a question answered.

    So: How to find the child level for each table in a relational model?

    I have a database of relacional (9.2), all right?
    .
         O /* This is a child who makes N references to each of the follow N parent tables (here: three), and so on. */
        /↑\ Fks
       O"O O" <-- level 2 for first table (circle)
      /↑\ Fks
    "o"o"o" <-- level 1 for middle table (circle)
       ↑ Fk
      "º"
    Tips:
    -Each circle represents a table;
    -Red no tables have foreign key
    -the picture on the front line of tree, for example, a level 3, but when 3 becomes N? How is N? That is the question.

    I started to think about the following:

    First of all, I need to know how to take the kids:
    select distinct child.table_name child
      from all_cons_columns father
      join all_cons_columns child
     using (owner, position)
      join (select child.owner,
                   child.constraint_name fk,
                   child.table_name child,
                   child.r_constraint_name pk,
                   father.table_name father
              from all_constraints father, all_constraints child
             where child.r_owner = father.owner
               and child.r_constraint_name = father.constraint_name
               and father.constraint_type in ('P', 'U')
               and child.constraint_type = 'R'
               and child.owner = 'OWNER') aux
     using (owner)
     where child.constraint_name = aux.fk
       and child.table_name = aux.child
       and father.constraint_name = aux.pk
       and father.table_name = aux.father;
    Thought...
    We will share!

    Thanks in advance,
    Philips

    Published by: BluShadow on April 1st, 2011 15:08
    formatting of code and hierarchy for readbility

    Have you looked to see if there is a cycle in the graph of dependence? Is there a table that has a foreign key to B and B has a back of A foreign key?

    SQL> create table my_emp (
      2    emp_id number primary key,
      3    emp_name varchar2(10),
      4    manager_id number
      5  );
    
    Table created.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table my_mgr (
      2    manager_id number primary key,
      3    employee_id number references my_emp( emp_id ),
      4    purchasing_authority number
      5* )
    SQL> /
    
    Table created.
    
    SQL> alter table my_emp
      2    add constraint fk_emp_mgr foreign key( manager_id )
      3         references my_mgr( manager_id );
    
    Table altered.
    
    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by prior child_table_name = parent_table_name
    SQL> /
    ERROR:
    ORA-01436: CONNECT BY loop in user data
    

    If you have a cycle, you have some problems.

    (1) it is a NOCYCLE keyword does not cause the error, but that probably requires an Oracle version which is not so far off support. I don't think it was available at the time 9.2 but I don't have anything old enough to test on

    SQL> ed
    Wrote file afiedt.buf
    
      1   select level lvl,
      2          child_table_name,
      3          sys_connect_by_path( child_table_name, '/' ) path
      4     from (select parent.table_name      parent_table_name,
      5                  parent.constraint_name parent_constraint_name,
      6                  child.table_name        child_table_name,
      7                  child.constraint_name   child_constraint_name
      8             from user_constraints parent,
      9                  user_constraints child
     10            where child.constraint_type = 'R'
     11              and parent.constraint_type = 'P'
     12              and child.r_constraint_name = parent.constraint_name
     13           union all
     14           select null,
     15                  null,
     16                  table_name,
     17                  constraint_name
     18             from user_constraints
     19            where constraint_type = 'P')
     20    start with child_table_name = 'MY_EMP'
     21*  connect by nocycle prior child_table_name = parent_table_name
    SQL> /
    
           LVL CHILD_TABLE_NAME               PATH
    ---------- ------------------------------ --------------------
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
             1 MY_EMP                         /MY_EMP
             2 MY_MGR                         /MY_EMP/MY_MGR
    

    (2) If you try to write on a table and all of its constraints in a file and do it in a valid order, the entire solution is probably wrong. It is impossible, for example, to generate the DDL for MY_EMP and MY_DEPT such as all instructions for a table come first, and all the instructions for the other are generated second. So even if NOCYCLE to avoid the error, you would end up with an invalid DDL script. If that's the problem, I would rethink the approach.

    -Generate the DDL for all tables without constraint
    -Can generate the DDL for all primary key constraints
    -Can generate the DDL for all unique key constraints
    -Can generate the DDL for all foreign key constraints

    This is not solidarity all the DOF for a given in the file object. But the SQL will be radically simpler writing - there will be no need to even look at the dependency graph.

    Justin

  • How to find the audio driver for HP sleekbook

    Can not find the audio driver for my HP laptop...

    I bought the new elegant book, model no HP. Elegant Pavilion book 15th-b001

    After 2-3 months, I found my laptop speakers weren't working and its got very slow. I couldn't do so I kept using headphones.
    recently, I've run the driverpack and accidentally a few update audio driver and voice my laptop has increased incredibly, I was surprised, it was very good,

    but now, I've updated my windows 8 to 10 and all the previous driver deleted and voice became too slow as it used to be.,.
    now I run the driverpack 15 which is a more up-to-date version, but they did not update this driver, and always the voice of my laptop is too slow.
    I don't know the exact name of that drivers, how do I know the name of that drivers?
    on the internet, I tried too many drivers audio, high definition, etc., but the result is zero,
    con someone help me about this?

    http://ftp.HP.com/pub/SoftPaq/sp59501-60000/sp59802.exe

  • Satellite L300D - cannot find the XP driver for the graphics card

    Hello

    I just bought a Toshiba Satellite L300D and I installed Windows XP (instead of vista, which was preinstalled). I can't find the XP driver for the graphics card... Everest recognizes him as ATI RS690M. A download link will send me straight to heaven!

    Thank you in advance,

    Nikos

    PS. of course, I searched the display on the sites of several Toshiba driver and I got this message: "the resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

    After that, I tried the driver from ATI, and it seems that they are more home driver for XP.

  • T440s: Where can I find the product key for Win7

    Where can I find the product key for Win7 on a T440s? There is no sticker on the bottom, or under the battery.

    Hi pjc123,

    In addition to the information above, I think the running Belarc Advisor will show you the product key.

    http://www.Belarc.com/free_download.html

  • Need to find the correct reference for replacement screen Aspire 5742

    Hello

    I need to find the correct part for replacement screen Aspire 5742.  The backlight does not work anymore, and I already bought a UPS to see that this model/version does not use a UPS (as the backlight is LED and integrated in the element of the screen).  I find the somewhat confusing model numbers table.  The full model version seems to be:

    5742 - 464G50Mnnk

    S/N: [redacted to comply with guidelines]

    SNID [redacted to comply with guidelines]

    This seems to be a very good laptop that belongs to a mine Guigou, but not worth repair at the local dealership, and I'm sure I can replace the screen myself if I can get the right part, having already dismantled the set of sieves and to be an electronic engineer.

    Either way, I guess that this version of model is the 5742, not the 5742 G (even if the model number has a 'G' in it: some of the confusion).  Any help would be appreciated.

    Part numbers for the 15.6 TFT LCD for the Aspire 5742 are:

    LK.15605.004
    LK.15605.010
    LK.15606.009
    LK.15608.007
    LK.15608.011
    LK.1560A.004
    LK.1560D.010
    LK.1560E.004
    LK.15605.019
    LK.15606.012

  • Can I get a configuration of single language somewhere? How can I find the license key for my installation.

    Original title: single language of windows 8

    I had 8 single language on dell inspiron 15-3521 pre-installed windows. I did repartitioning disks and windows recovery options 8 as 'reset your pc' and "Refresh your pc" has stopped working, saying that the not found recovery partition, but it was intact. I have no recovery disk.

    Can I get a configuration of single language somewhere? How can I find the license key for my installation.

    Hi Mohammed'metwally,.

    Please answer this question to get more clarity on this issue.

    • The application or program that you use the partition of the drive?

    This problem may occur if the partition table is damaged or altered. As a result, the recovery partition does not work. I'm sorry to know that you are facing this problem.

    You will not get the unique language anywhere to download setting. You have an OEM computer that comes with the product key integrated into the BIOS. The product key of Windows 8 on new machines is now integrated in the machine. It uses the Secure Boot technology. When you perform a new installation of Windows 8, the installation program ask a product key and will be automatically get it from your system and proceed with the installation.

    As Windows 8 came pre-installed, you must contact the manufacturer of the computer with this problem for more help.

    http://en.Community.Dell.com/?~CK_=_mn

    Dell technical support: http://www.dell.com/support/contents/us/en/04/category/Contact-Information/Technical-Support?c=us&l=en&s=bsd&cs=04

    Thank you.

  • How can I find the serial number for any of our subscription products?

    One of our subscription products does not appear in our online account page.  How can we find the serial number for this product?

    There is no serial number for CC products. They are simply listed under your plans and your subscriptions when it is active.

    Mylenium

  • EM12c: Cannot find the House discovered for plugin id:oracle.sysman.db

    Platform EM12c:
    Oracle Enterprise Linux 6.2 (x86_64)
    Oracle Enterprise Database 11.2.0.3 (x86_64)
    Enterprise Manager Cloud control Release 1 (12.1.0.1) 12 c (x86_64)
    --------------------------------------------------------------------------------------
    Problem:
    EM12c > objectives > databases > add
    Discovery of targets on the host: mcsdbora1.esri.com
    mcsdbora1. ESRI.com - cannot find the House discovered for plugin id:oracle.sysman.db
    --------------------------------------------------------------------------------------
    Notes:
    -Mcsdbora1.esri.com host is "Microsoft Windows x 64 (64-bit)"
    -EM12c is on Oracle Linux 6.2 (X86_64)
    -J' downloaded the latest version of the software Agent before adding the host
    "" EM12c > Setup > extensibility > Auto Update "before adding the host" "
    -Mcsdbora1.esri.com host is listed under "EM12c > objectives > Hosts".

    I found these articles in the support.oracle.com

    "How to manually add targets to the database in 12 c Cloud Control [ID 1371846.1]"

    "How to deploy the latest Plugin from database to the WHO and the Agent in 12 c Cloud Control [ID 1388143.1]"

    This last article, says updated the plug-in "Oracle Database". I checked and I do turn more later 12.1.0.1 connect.

    I wonder if I can only solve this bug, if I upgraded to Bundle 1 Patch (12.1.0.2) and install the 'Oracle' plug-in 12.1.0.2 database?

    Thank you

    Marcelo
    --------------------------------------------------------------------------------------

    BP1 is required for the management of the goals of Windows. So, you need to first upgrade your Linux WHO to BP1 and apply a few spots on the top before you can deploy plug-in on Windows machines. Support can provide you with the details.

  • Find the Audio driver for HP dc7600 convertible minitowers PC for Win7

    Dear all Member,

    I have two HP dc 7600 and computer in minitour convertible HP dc 7800 PCs, recently I upgraded the old OS win XP of them for the new OS Win 7, I'm looking for drivers for Win7 in here, but until now, I couldn't find the Audio driver for Win 7.

    Some audio that I found them on the web for HP to be compatible with Win7 drivers, but they are unsupported when I installed them on my computer.

    You help me by sending the right link to download the Audio drivers for Win7 on HP dc7600, dc7800?

    Thank you very much.

    Chinh_Ng.

    Hello:

    For the dc7600, the best thing to do is to go to the realtek website and download and install the latest driver for the audio.

    Accept the agreement. Download and install the driver either the 1st or the 2nd on the list depending on whether you have installed W7 32-bit or 64-bit.

    http://www.Realtek.com.tw/downloads/downloadsView.aspx?langid=1 & PNid = 24 & PFid = 24 & Level = 4 & Conn = 3 & DownTypeID = 3 & getdown = false

    I have a dc7800 CMT and I used the audio driver from the support page and driver and it worked perfectly for me, so I can't help you there.

    I used the one on the link below.

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en & cc = us & prodTypeId = 12454 & prodSeriesId = 3459240 & prodNameId = 3459243 & swEnvOID = 4059 & swLang = 13 & mode = 2 & taskId = 135 & swItem = vc-75954-1

  • Laptop HP 15-r033TX: did not find the driver wifi for my laptop to windows 7 64 bit

    Hello

    I need help. I did find the driver wifi for my laptop for windows 7 64 bit. Can you send me a useful link.

    Thank you

    Hello:

    Here is the link to the wireless card driver you need...

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-131223-1 & CC = US & DLC = in & LC = on & JumpID = reg_r1002_usen_c-001_title_r0005

    You will also need the bluetooth driver...

    http://h20566.www2.HP.com/hpsc/SWD/public/detail?swItemId=ob_130390_1

  • Portege M200: Can't find the right driver for the TouchPad

    Hello

    I have a problem with my Portege M200.

    Can't find the right driver for the TouchPad or a pencil,
    I read that it must be a Wacom Touchpad, but no driver I've tried has worked.

    I hope someone can give me a list of all the drivers that I need to use my pen on the screen!

    Thanks in advance.

    Chris

    Hello

    All the drivers are located on the European driver Toshiba page.
    Please check again.

    The touchpad needs an Alps Electric touchpad driver. It s is available on the page.
    In addition, you should the Tablet Pack (on the page too)
    This tablet PackMicrosoft Pack Microsoft Office XP for Tablet PC (Tablet Pack) allows you to write directly with your stylus in the documents of Office XP on your Tablet PC.

    By the way; You must use the pencil that was equipped with the Portege M200

    Welcome them

  • Satellite A500 - cannot find the display drivers for Windows 7

    I can't find the video drivers for Satellite A500 - 1 c 0, P/N: PSAR3E for Windows 7 x 86.

    I tried on the Nvidia site, they recommended the manufacturer's website...

    Hello

    Normally, you can get all the drivers here:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    I checked this and it seems that for the moment no are no 32 bit Windows 7 drivers available.

    What you can do now is looking for other display drivers. Maybe an another Toshiba laptop has the same graphics card and it has Windows 7 drivers released.
    Otherwise, you can try the 32-bit drivers for Vista. Normally, they also work on Windows 7.

  • Satellite L300 - 19N PSLB8E - can't find the right drivers for Vista 32 bit

    Hello

    After you have reinstalled vista 32 bit, I can't find the right drivers for: Satellite L300 - 19N PSLB8E-00V011DU

    -VGA adapter
    -Realtek RTL8101Family PCI fast ethernet
    -videocontroller
    -Controller SM

    Everyone?

    Thank you already!
    .

    Hello

    Go to the page European driver Toshiba because it is European model:
    http://EU.computers.Toshiba-Europe.com/-> support download &-> download drivers

    You will find all the drivers!

    Display VGA adapter driver
    Realtek RTL8101Family PCI fast Ethernet LAN card driver
    SM controller might be chipset driver or driver card reader

  • Re: Satellite P200D - 11L: where can I find the latest drivers for the Radeon HD 2600

    Hello

    Where can I find the latest drivers for the Radeon HD 2600? The Catalyst 7.11 since the official site of Ati/Amd works on a laptop? I read some stuff that these drivers do not support mobile maps and that there is a software for this problem, so I'm a bit confused now.

    What about drivers on the Toshiba site? They are more suitable? I don't really know.

    Thanks for your help.

    Of origin ATI/nVidia drivers are not designed for Toshiba laptops.
    ATI drivers can be used on desktop computers.
    The drivers of Toshiba graphics card supports thermal protection which is necessary to avoid the increase in temperature.
    Laptops, graphics cards do not have huge as cooling office modules graphics cards and therefore the GPU driver control the performance of the graphics card.

    What you could do is to check the site driver for 3rd party such as;
    www.OmegaDrivers.net.

    But the non-Toshiba drivers may be used only at your own risk!

Maybe you are looking for

  • I do not want my passwords stored in firefox how to stop it?

    accidentally, I asked firefox to remember one of my passwords. I would like to get firefox to rember not she. How can I do this?

  • audio output

    Hi all! As others have pointed out there are some difficulties to get the sound card continues the audio output to work without problems. In the thread: http://forums.NI.com/NI/board/message?board.ID=170&message.ID=397480&query.ID=211842#M397480 t06a

  • LVOOP - Screw for the substitution will not run if brother is broken

    Scenario: I have a class parent with two children who are independent (child class A and class B child).  Class children don't do not reference child class B or vice versa.  In the parent class, I a VI called Populate' objects ' that should be overri

  • Not enough space on XP

    I received a message of not enough space on the local disk C. I deleted many files and programs to free up space, but I still receive the message. And local drive D is empty. I am running XP Edition family.

  • Outlook Express: Shortcut in "Tools/Message rules/Mail" Possible?

    I discovered ways to create shortcuts to a large number of Windows functions, so that I don't have to click on the menus and submenus to make things happen, for example 'Safely Remove Hardware' is: "Shell32.dll, Control_RunDLL hotplug.dll C:\WINDOWS\