How to put table relations in a hierarchical Jtree

Hi everyone !
My Problem is as following:
1. I've got a generic Database (over JDBC-ODBC)
2. I'v got an application with a JTree
3. I want to get the relations between tables
4. Those relations should be put in a hierarchical tree (namely JTree) to get a complete map of the Database!
I know, i have to get informations from the database schemas, but i don't know, how to handle them :-(
The database is in any relatioal format (e.g. Access) and what i want, is a hierarchical map of it in a JTree...
Example code is appreciated (if someone has solved it already !?!)
Kevin

Hi Kevin,
I didn't want to be offending.
Sorry, if it has sounded this way for you!
Was it a problem to tell you things you already knew?
I didn't know that you knew them, and from your question I assumed you didn't.
I don't doubt that you are a DB programmer.
But I have not yet a clear feeling what you want to get out in your JTree at the end.
You make the tables to nodes in the tree and their columns to their children. For one table, ok.
Obviously you want to follow the joins and so skip from table to table.
So the columns of the joined table are added to those of the first table. Ok.
The DatabaseMetaData class should be able to tell you the primary keys - by getPrimaryKeys() -
and the foreign keys - by getExportedKeys() and getImportedKeys() - of your tables.
Do you make 1 JTree for each single table? Then I don't doubt you get a flat hierarchy.
But I had thought, you want to get all the tables in 1 graphical structure,
and for this I still don't understand, what you do with m-to-n-realtionships (which I called links).
Example:
table "program", table "pc"
Each program can be installed on n pcs, each pc can have n programs installed.
Probably you use a table program_pc to implement this relationship.
So table program_pc is joined to table program (program_pc.program_id = program.program_id)
and also to table pc (program_pc.pc_id = pc.pc_id).
How would you solve this?
I'm really interested.
Yours
Hartmut

Similar Messages

  • How to find tables related to data sources

    Hi...
    Can anybody tell me how to fine Database tables related to Data source.
    Ex: I have a data source 0fi_ap_3. How can i fine From   which tables it is extracting the data.
    Thanks & Regards
    Pankaj Angra

    Hi Pankaj,
       This has already been discussed in the following forum links,.. they will be helpful...
    Re: Find R/3 tables which are in the datasource
    Tables associated with DataSource!
    Find R/3 tables which are in the datasource
    Hope this helps...
    Thanks,
    Raj

  • How to create table relation diagram?

    Hi.
    I need Gurus help!
    Before writing programs working with Database, scheme of used tables should be prepared.
    Which methods can be used in SAP to prepare tables scheme and
    their relations diagram for reports written in ABAP.
    Thanks.
    Mehman.

    I've got a screen shoot of a diagram made on SAP ([http://photos.l3.facebook.com/photos-l3-sf2p/v356/66/47/1016354007/n1016354007_159605_4849.jpg]).
    But unfortunately I don't know how to built it.
    I think it would be better to build it on SAP.
    Because there you can also see description of tables and fields.
    And it makes you work easier.

  • How to put five related short videos into one folder (in Event Library)?

    I would like to take 11 short 30-second Photo Booth movies and put them into one folder titled RISE UP. This would save space in the Event Library on the left vertical column. How do I do this? Is it possible?
    Lorna
    http://web.mac.com/lorna6

    But none of the 11 videos is housed in an Event. They are just 11 short videos in a row. I tried to make an empty folder to name as RISE UP, but the application would not let me do that.
    If the files have not yet been imported to iMovie '08 then select the "Import Movie..." File menu option. When the import window opens, in the lower area:
    a) Select your destination hard drive in the "Save to:" block
    b) Select the "Create new Event:" radio button
    c) Name the new event
    d) Select whether you want the files copied or moved to the new event
    Now navigate to and select the files you want to import in the upper half of the window. (You can select individual files; multiple, non-contiguous files; or a contiguous range of files.) Press import when done making your selection(s).

  • How to find table related details from a field on a transaction?

    If I type a transaction code msc3n and press enter, I come into 'Display batch' transaction. Now if I fill material and batch details and press enter, I will be getting 'shelf life exp. date' on basic data 1 tab. Now how will I know from which table this value is coming from? I tried pressing F1 and then technical info to see the field and table details, but no such details are given here. Only structure details are given.
    Please let me know in detail.
    Thanks in advance for your helpful answers.
    Nuren

    Go to SE93-> give ->msc3n  double click program -> in top include you`ll find the tables OR search key word "tables" in program .
    FYI
    tables: dfbatch, " Dynprofelder
    bncom, " allg. Kommunikationsstruktur
    mtcom, " Kommunikations-WA Mat.stamm
    makt, " Materialkurztexte
    mbew, "#EC NEEDED
    t001w, " Werke
    t001l, " Lagerorte
    mara, " Konzerndaten zum Material
    marc, " Werksdaten zum Material
    mard, " Lagerortdaten zum Material
    mch1, " Chargendaten
    mcha, " Chargendaten werksbezogen
    mchb, " Chargenbestände
    mchx, " Bewert.arten zu werksübergr. Ch
    mchuwl, " Arbeitsvorrat Charge Benutzer
    thead, " SAPscript: Text-Header
    cdhdr, " Header Änderungsbelege
    cdshw, " Positionen Änderungsbeleg
    t148g, " Feldauswahl Sonderbestände
    t148zt, " Texttabelle Zustandsschlüssel
    t149c, " globale Bewertungstypen
    t005u, " Provinzschlüssel Texte
    t005t, " Bezeichnung der Länder
    tvfmt, " Materialgruppe Export Bezeichn.
    bwtty, " Bewertungstyp
    rmclm, " E/A Felder Klassifizierung
    inob, " Umschlüsselung Klassif.objekt
    kssk, " Zuordnung Objekt <-> Klasse
    klah, " Kopfdaten Klassen
    t134, " Materialarten
    prdkzt, " Texte zum Periodenkennzeichen
    *prdkzt. "#EC NEEDED
    Hope this’ll give you idea!!
    P.S award the points.
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • HOW KIND OF Standard table related with vk11, vk12 and vk13?

    HI, EVERYONE,
    HOW KIND OF Standard table related with vk11, vk12 and vk13?
    I want to know about how many and how kind Standard table related with vk11, vk12, vk13.
    I'v found some table like konp and a601 ~ a609, also I want to know about those table of uses?
    I am starting to study about vk11.
    please help me.

    Hi Reena,
    Then main pricing related tables are KONH  header details, and KONP item details.
    The other tables your have mentioned like A601,A609.............. all these are condition tables, which stored the values which you save for access sequence combination.
    Eg : For condition type PR00, lets us assume one key combination customer/material, so these details will be saved in condition table which is initially generated with fields as a part of condition techinque.
    So here the table would be A005 i guess or its A006.
    So like wise there will be condition tables for each key combination.
    Regards
    v K

  • GLPCT-GLPCA, GLPCA-BFOD_A/BFOK_A table relations

    Hi,
    How are these tables related to one another? What are the fields that I can match?
    1. GLPCT and GLPCA
    2. GLPCA and BFOD_A or BFOK_A.
    Thanks.

    refer the link
    http://www.auditware.co.uk/SAP/Extras/SAPTables.pdf
    In page no :8 , you can see the clear link between  GLPCT, GLPCA, GLPCO, GLPCC
    regards
    vivek
    *mark points if this helps

  • How to create a relational view base on an xmltype table which included sev

    Hi,
    I am using oracle 11.2.0.1.0.
    how to create a relational view base on an xmltype table which content several different .xml files?
    Thanks.
    for examle:
    SQL> SELECT OBJECT_VALUE FROM document;
    Edited by: Cow on Jan 6, 2011 7:57 PM

    For example I already have these three xml files inserted into the document xmltype table.
    These xml files have same schemas. I have attached below.
    I want to show all elements/attribute values in xml files to relational view.
    Is this possible to create one big relational view to show everything
    or I have to create three separate relation views then use UNION to put together? Thanks a lot. Cow
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
    <document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
    <id root="5ca4e3cb-7298-4948-8cc2-58e71ad32694"/>
    </component>
    </document>
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type="text/xsl"?>
    <document xmlns="urn:hl7-org:v3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:hl7-org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd">
    </component>
    </document>
    Edited by: Cow on Jan 4, 2011 9:51 AM

  • How to put scrol bar in table viw control in module pool programming

    how to put scrool bar in table-view control in module pool programming

    Hi Rani,
       You need not insert Scrollbar in the table control, it appears automcatically once the amount of data vertical or horizontal limit of table control.
    Regards,
    Sathish
    Note : Reward useful Answers

  • . How to put Check box in every row in Table

    Hi Friends,
    I have one doubt in Webdynpro with java. How to put Check box in every row in Table?
    For Exam My requirement is I am getting BAPI from ECC System. So I have to go given input details in first view and output details in SecondView. So in Second View I will taken Table that data will displayed in rows. I need each and every row first I need check box.
    Here Select Check Box of particular row then click GetData button.  That row data will be displayed in one popup window.
    In table suppose 6 rows available in table. Every Row first Check box available.
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name
                             empid, name, sal  ,firstname, last Name 
    How to put Check box in every row in Table?  can you send any examples applications
    Regards
    Vijay

    Hi Friend,
    When we are getting BAPI From ECC System. that BAPI Have nodes and Attribues...in under node we can't create "CheckBox"
    attribute.
    So i am doing like this.I am create on Checbox attribue out side of Node. Check Box data type is boolean.
    next i am creating table ( that table having rows and columns) Right click on table-->Click on Insert GroupedColumn->again right click on nsert GroupedColumn---> Here Select Check Box.
    Okay...here i am getting one problem. i have got Check boxes .But i am select check box in  first row. that time all check boxes will be selected.
    i need select first row check box that only first row will be selected suppose i selected second row check box that only second will be selected.
    i need this can u help me....
    Regards
    Vijay

  • How to find out the tables related to CRM datasources?

    How to find out the tables related to CRM datasources? For example, the table related to 0CRM_OPPT_H.
    Regards,
    R.Ravi

    Hi Ravi,
    To find out all tables used go into the CRM source system to transaction RSA3 and prepare the selections for extraction of your datasource.
    In a parallel session execute transaction ST05 and press the button 'Activate Trace'
    Go back to the extracor checker and execute the extraction.
    Switch sessions and subsequently 'Deactivate Trace' and 'Display Trace'.
    This will list all tables used.
    regards,
    Olav

  • How to define tablespaces in Oracle 10g and how put tables on tablespaces

    Hello,
    I'm having trouble to define the structure of tablespaces and how to distribute the tables/indexes/lobs on these tablespaces.
    Do you know some rules on how to define this?
    What I have until now:
    1) Put table indexes in separate tablespace
    2) Put lobs in separate tablespace and use storage clause when defining the lob column. Not sure how many tablespaces to use, I have tables with millions of lobs and tables with just one lob (with row containing the lob).
    3) Please fill more rules here ...
    Thank you, Alex.

    Long story: I received database and schema creation scripts defined in Oracle 9i. I want to redesign the tablespaces number/storage and also to change the distribution of tables into tablespaces.
    As an example I will show how tablespaces are created now. There is one tablespace for indexes BLUE_AUTO_INDX and one for each EXTENT MANAGEMENT of:
    - 64K for BLOB , name BLUE_K064_BLOB
    - 64K for tables , name K064_NTAB
    - 128K for tables, name BLUE_K128_NTAB
    - 512K for CLOB , name BLUE_K512_CLOB
    - 4M for BLOB , name BLUE_M004_BLOB
    - 64M for CLOB , name BLUE_M064_CLOB
    - 8M for tables , name BLUE_M008_NTAB
    - 1M for tables , name BLUE_M001_NTAB
    - 256M for tables, name BLUE_M256_NTAB
    Definition of each tablespace is like:
    CREATE TABLESPACE BLUE_AUTO_INDX DATAFILE 'BLUE_AUTO_INDX01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_BLOB DATAFILE 'BLUE_K064_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K064_NTAB DATAFILE 'BLUE_K064_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 20M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K128_NTAB DATAFILE 'BLUE_K128_NTAB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_K512_CLOB DATAFILE 'BLUE_K512_CLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 512K SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M004_BLOB DATAFILE 'BLUE_M004_BLOB01.DBF' SIZE 20M REUSE AUTOEXTEND ON NEXT 10M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 4M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M064_CLOB DATAFILE 'BLUE_M064_CLOB01.DBF' SIZE 400M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 64M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M008_NTAB DATAFILE 'BLUE_M008_NTAB01.DBF' SIZE 200M REUSE AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 8M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M001_NTAB DATAFILE 'BLUE_M001_NTAB01.DBF' SIZE 100M REUSE AUTOEXTEND ON NEXT 50M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLESPACE BLUE_M256_NTAB DATAFILE 'BLUE_M256_NTAB01.DBF' SIZE 512M REUSE AUTOEXTEND ON NEXT 256M MAXSIZE UNLIMITED LOGGING ONLINE PERMANENT EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256M SEGMENT SPACE MANAGEMENT AUTO;
    Does this structure of tablespaces ok? I mean if the logic of one tablespace for different EXTENT SIZEs looks ok?

  • How to put 'Continue in next page' below the table.

    Hi,
    I have an invoice where all the lines are not fitting into one page. So some of the lines are getting printed in the second page. But in this case I wanted to put a message below the first page as "continue on next page"
    Since Iam a newbie to XML/BI Publisher I kinda stuck here. Tons of thanks in advance.
    This is how I need the output
    --- PAge1 --
    heading1
    line1
    line2
    line3
    line4
    line5
    line6
    line7
    line8
    line9
    line10
    Continue on next page
    -- page 2--
    heading1
    line11
    line12
    line13
    line14
    line15
    line16
    line17
    _________

    There are so many threads for this lately,..
    Go here
    http://winrichman.blogspot.com/...
    Here is some of the thread people were desperately looking for answers :).
    how can we get "Page Continued" at footer of page.
    Re: How do I print the word "Continued" at the bottom of page in BI publisher?
    How to Display 'Continued' in second& subsequent page but not in last page?
    Re: Printing signature on footer section of every page
    Re: How to put 'Continue in next page' below the table.
    Re: How do I check the last page?
    Help needed in XML Publisher rtf file
    Re: Different value in footer
    Changing header information within a document
    Re: Invoice Page break
    Re: Footer information in very page
    Re: Check Printing
    Oops, I initially thought , there would less number of threads,
    Hope my blog helps them :)

  • How to put flash as a table or cell background or put HTML elements on top of flash file?

    Hi Guys,
    Could anyone please suggest me that how to put flash file as a table or cell background. I want to design a website and want to put HTML elements like table, images, text on top of flash file. so its look like animation in background. please visit following websites for an example: http://www.gagudju-dreaming.com/ and http://disneyworld.disney.go.com/
    Please guide me ASAP, thanks a lot in advance.
    Nitz.

    Hi Nitz
    The first thing you must do is convert your layout from table based to css based, (tables are o/k for tabular data, but not layout) but if you have never used css for layout it may be a steep learning curve.
    My recommendation is to start with the following tutorial on converting a table based comp to a css layout -
    http://www.adobe.com/devnet/dreamweaver/articles/dw_fw_css_pt1.html
    More info on using css is available here - http://www.adobe.com/devnet/dreamweaver/css.html.
    Once you have converted your site the 'procedure' for using swf's as a background, (does not work well with flv's, but can be done using html5 video without a skin, to a limited extent) is the same as having a background-image resize automatically to the full browser view-port. The best way to learn how to do this is to view the code on a page using the background-image technique, view the code on this page - http://www.pziecina.com/indexold.php.
    However, instead of having a fluid layout I would recommend using a fixed layout size to start with, as this overcomes many problems. I have uploaded a basic test page to illustrate the idea to - http://www.pziecina.com/test_ideas/swfbg_test.html. As I said the page must be resized in this example in order to see the effect, (so do not forget to resize the browser, even if it is only by 1px), but if you use a fixed size layout and your swf's size fits the desired area correctly the resize should not be required.
    PZ
    www.pziecina.com

  • Q: how to put values of two VO in a search table that is dependent

    Hi
    my requirement is somehow complicated, it is as follows:
    i have an employeeEO and a DirectorEO with the corresponding employeeVO and DirectorVO i want to make a search on the two VOs but with one search table and one go button.
    I have put a query region then region using wisard for the EmployeeVO then add an item for the director with no view instance and no view attribute, now i don't know how to put the name of the director in DirectorVO according to the empID in EmployeeVO
    any help would be appriciated
    Thanks

    i have also put the following in the processRequest
    OATableBean employeeTable = (OATableBean)webBean.findChildRecursive("EmployeesVO1");
    OAMessageChoiceBean directorIdList = (OAMessageChoiceBean)employeeTable.findChildRecursive("Director");
    OAMessageStyledTextBean empIdList = (OAMessageStyledTextBean)employeeTable.findChildRecursive("EmpId");
    directorIdList.setListVOBoundContainerColumn(0, employeeTable,"empIdList");
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("putDirector");
    but the problem is how then i can put the empId in the Am without a specific reference ??

Maybe you are looking for

  • Itunes 7  downloading probs & authorization probs

    I wish I'd checked this forum before updating! I am getting error -50 on purchased music downloads and since I changed my log in password I keep getting the 'not autorised' message on every track I try to play despite authorising the computer and get

  • Application servers are developed in visual c++6.0 were not starting in windows server 2008.

    Hi,     Some application servers are developed in visual c++ 6.0 are running windows server 2003 properly.when its running in 2008R2 these r not starting.we checked in security log just process creating and terminating with 0X2,it means file not foun

  • Monitoring system status in BAM

    Hi, Our Customer requires system status monitoring so the question is: Is it possible to monitor the status of the Database, the App server and the BPEL server and display it in BAM in a not too complicated way. Regards Eskil

  • OSX 10.4.8 probs w Audiowerk 8

    Hi All: Operating MAC OSX Tiger 10.4.8 with Logic Pro 7 (not crossgrade) and a single M-Audio 1010 Delta card. This is fine. but I've recently installed an older Audiowerk 8 (from a lonely G3) card to combine for more outputs on my G4 Dual 867 via Lo

  • Program abap of open documents

    I am new in ABAP for FI I have that do a program abap of open documents from customers and offset. Someone have a program that can use give me of guide. Regards.