Inheritance Modelling Design

Hi, there. I'm a newbie here. I've just finished installing my Oracle Designer and now I've got a trouble in Designing Inheritance Object. I still don't know yet how to design an inheritance object using Oracle Designer.
I'd tried using a Reverse Engineering which already had an inheritance table inside the database, and here is the database script:
CREATE TYPE person_typ AS OBJECT (
idno NUMBER,
name VARCHAR2(30),
phone VARCHAR2(20),
MAP MEMBER FUNCTION get_idno RETURN NUMBER,
STATIC FUNCTION show_super (person_obj in person_typ) RETURN VARCHAR2,
MEMBER FUNCTION show RETURN VARCHAR2)
NOT FINAL;
CREATE TYPE BODY person_typ AS
MAP MEMBER FUNCTION get_idno RETURN NUMBER IS
BEGIN
RETURN idno;
END;
-- static function that can be called by subtypes
STATIC FUNCTION show_super (person_obj in person_typ) RETURN VARCHAR2 IS
BEGIN
RETURN 'Id: ' || TO_CHAR(person_obj.idno) || ', Name: ' || person_obj.name;
END;
-- function that can be overriden by subtypes
MEMBER FUNCTION show RETURN VARCHAR2 IS
BEGIN
RETURN person_typ.show_super ( SELF );
END;
END;
CREATE TYPE student_typ UNDER person_typ (
dept_id NUMBER,
major VARCHAR2(30),
OVERRIDING MEMBER FUNCTION show RETURN VARCHAR2)
NOT FINAL;
CREATE TYPE BODY student_typ AS
OVERRIDING MEMBER FUNCTION show RETURN VARCHAR2 IS
BEGIN
RETURN person_typ.show_super ( SELF ) || ' -- Major: ' || major ;
END;
END;
Then I tried to implemented back to the database using the DDL script which was generated by Oracle Designer, but I found an error showing that the Oracle Designer did not support the multiple inheritance.
Is there any solution or other way to design an inheritance type or table? Or is there any online tutorial which is teaching me how to design an inheritance object?
Thanks a lot,
Hendra

All I can do is point you at the Statement of Direction - http://www.oracle.com/technology/products/forms/pdf/10g/ToolsSOD.pdf. I didn't say that Designer doesn't support object modeling at all, only that it is incomplete and doesn't support object/relational enhancements in Oracle RDBMS since about (I'm estimating here) version 9iR1. But a lot of the inheritance features were not in the supported version of Oracle, hence your problem.
While JDeveloper has object modeling tools, and these are pretty good IMHO, they are modeling Java classes, not Oracle object types, so they don't generate CREATE TYPE and CREATE TYPE BODY commands. So you won't find what you want in a tool by Oracle. Oracle plans to have some modeling tools in a future version of Oracle SQL Developer, but this is a fairly recent announcement and the details are yet to be revealed. So I don't know if it will support modeling of Oracle Object types.
There may be a third party tool that has what you need - but I haven't really checked this out.

Similar Messages

  • How to save data model design in pdf or any format..?

    how to save data model design in pdf or any format..?
    i ve created design but not able to save it any mage or pdf format

    File -> Print Diagram -> To PDF File

  • Performance impacts of attributes versus entities in data model design

    I'm trying to understand the performance implications of two possible data model designs.
    Here's my entity structure:
    global > the person > the account > the option
    Typically at runtime I instantiate one person, one account, and five option 's.
    There are various amounts determined by the person's age that need to be assigned to the correct option.
    Here are my two designs:
    Design one
    attributes on the person entity:
    the person's age
    the person's option 1 amount
    the person's option 2 amount
    the person's option 3 amount
    the person's option 4 amount
    the person's option 5 amount
    attributes on the option endity:
    the option's amount
    supporting rule table:
    the option's amount =
    the person's option 1 amount if the option is number 1
    the person's option 2 amount if the option is number 2
    the person's option 3 amount if the option is number 3
    the person's option 4 amount if the option is number 4
    the person's option 5 amount if the option is number 5
    Design two
    attributes on the person entity:
    the person's age
    attributes on the option entity:
    the option's amount
    the option's option 1 amount
    the option's option 2 amount
    the option's option 3 amount
    the option's option 4 amount
    the option's option 5 amount
    supporting rule table:
    the option's amount =
    the option's option 1 amount if the option is number 1
    the option's option 2 amount if the option is number 2
    the option's option 3 amount if the option is number 3
    the option's option 4 amount if the option is number 4
    the option's option 5 amount if the option is number 5
    Given the two designs, I can see what looks like an advantage for Design one in that at runtime you have less attributes (6 on the one pension member + 1 on each of 5 options =11) than Design two (1 on the one pension member + 6 on each of 5 options = 31), but I'm not sure. An advantage for Design two might be that the algorithm has to do less traversing of the entity structure: the supporting rule table finds everything for the option's amount on the option.
    Either way there is a rule table to determine the amounts:
    Design one
    the person's option 1 amount =
    2 if the person's age = 10
    5 if the person's age = 11
    7 if the person's age = 12, etc.
    Design two
    the option's option 1 amount =
    2 if the person's age = 10
    5 if the person's age = 11
    7 if the person's age = 12, etc.
    Here it looks like the rulebase would have to do more traversing of the entity structure for Design two.
    Which design is going to have better performance with a large amount of rules, or would it make a difference at all?

    Hi!
    In our experience you only need to think about things like this if you were dealing with 100s or 1000s of instances (typically via ODS). As you have a very low number, the differences will be negligible, and you should (usually) go with the solution which is the most similar to the source material or the business user's understanding. I also assume this is an OWD project? Which can be even better, since the inferencing is done incrementally when new data is added to the rulebase, rather than in one "big bang" like ODS.
    It looks like design 1 is the simplest to understand and explain. I'm just wondering why you need the option entity at all, since it seems like a to-one relationship? So the person can only have one option 1 amount, one option 2 amount etc, and there are only ever going to be (up to) 5 options...is that assumption correct? If so, you could just keep these as attributes on the person level without the need for instances. If there are other requirements for an option instance then of course, use them, but given the information here, the option entity doesnt seem to be needed. That would be the fastest of all :-)
    Either way, as the number of instances is so low, you should have nothing to worry about in terms of performance.
    Hope this helps! Write back if you have any more info / questions.
    Cheers,
    Ben

  • Process modelling : Design patterns & Best Practices

    Hi
    Could some one please suggest/share any technical information or documents tha's related to 'Process modelling - Design Patterns & Best Practices'
    Thanks in Advance
    Santosh K.
    Edited by: Santosh539 on Jul 29, 2010 4:07 PM

    Hi Santosh,
    There is no specific site with all the information you asked for.
    But I think these links would be helpful...
    on Work Flow Patterns: http://www.workflowpatterns.com/
    on BPM Service Pattern: http://enterprisearchitecture.nih.gov/ArchLib/AT/TA/WorkflowServicePattern.htm
    HTH
    Sharma

  • Org. Attribute Inheritance Model and Strategy

    Hi all -
    We are currently replicating the org. from SAP HR, but are looking for any suggestions on defining an attribute inheritance model for SRM specific attributes.
    Any suggestions?  The org has approximately 15,000 positions.

    Hi,
    The following attribute which is common to all the users can be inherited at the Organisation level.
    Say for Example there are 5 organisation
    for Org : 1 :Common attribute : These are the attribute common for say 200 employees so you can give at the org and tick
    the inherited so that you can again enter the same for all the employees.
    ACS
    BWA
    CAT
    CNT
    EXT_ITS
    KNT
    ROLE
    SYS
    VENDOR_ACS.
    Like this first chart out and give the attributes
    Regards
    G.Ganesh Kumar

  • SAP BW SRM Workflow data model design

    Hi All,
    I have a requirement from my client to design SAP BW SRM Work flow report, in output user is interested for document flow/chain starting from Shopping cart (SC) - Bid invitation (RFx) - Bid (RFx responses) - Purchase order (PO) - Confirmation. There are standard datasources and DSO's for the same but I want to check experts ideas on data model design. I am thinking to build infosets on top of DSO's but it will impact Query performance as data volume for sure will be more and will increase down the line. In addition I need to consider below exceptions or restrictions as well:
    1. Document may/may not start with SC for example one possibility is document start at SC and end at Confirmation or start at RFx and end at PO etc.
    2. User is expected to see below various possibilities of document chain in report output:
    SC - RFx - RFx responses - PO - Confirmation or
    SC - RFx - RFx responses or
    SC - PO - Confirmation or
    SC - RFx - RFx responses - PO
    SC - RFx or
    RFx - RFx responses or
    RFx or
    RFx - RFx responses - PO or
    RFx - RFx responses - PO - Confir or
    PO - Confiramtion or
    PO
    your help and ideas on this is greatly appreciated
    Thanks and Regards,
    Reddy

    Hi All,
    Any inputs or ideas on the data model design? Thanks for your help in advance
    Regards,
    Reddy

  • Trouble saving Data Modeler design 4.0EA3

    Hello,
    I'm having trouble saving a Data Modeler design.  I can create and import tables into a physical model; however, when i save the model (File > Data Modeler > Save) it doesn't appear to be saved correctly since the resulting .dmd file is 0 bytes.  If i close the design and reopen it, none of the tables that i created appear.
    I'm using version  SQL Developer Version 4.0.0.13.30 on Windows 7.
    Thanks,
    Pete

    i don't see any recent errors in the datamodeler.log file.  the only entries for the last 2 days are:
    2013-11-12 11:04:52,116 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 11:15:12,672 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 11:26:59,517 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-12 16:54:18,313 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 10:44:03,694 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 10:49:26,093 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    2013-11-13 11:08:11,679 [AWT-EventQueue-0] INFO  DataModelerAddin - Oracle SQL Developer Data Modeler 4.0.0.825
    if run sqldeveloper\sqldeveloper\bin\sqldeveloper.exe, the only message in the console is:
    LOAD TIME : 205
    no other messages.
    I have 3 different builds of sql developer 4.x - they all have this problem.  My 3.2 build does not have this problem.  So, next, i installed the Data Modeler standalone version (4.0.0.825) and created a physical model with just one table - and i was able to save it!  The .dmd had the following content (not 0 byte):
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <OSDM_Design class="oracle.dbtools.crest.model.design.Design" name="test_dm_only" id="986F3685-3223-BAF6-8D69-6C2C4C52718E" version="3.5">
    <createdBy>HillsP01</createdBy>
    <createdTime>2013-11-13 16:36:18 UTC</createdTime>
    <ownerDesignName>test_dm_only</ownerDesignName>
    <capitalNames>false</capitalNames>
    <designId>986F3685-3223-BAF6-8D69-6C2C4C52718E</designId>
    </OSDM_Design>
    So, looks like the Data Modeler works, but there's a problem with my installation with the full SQL Developer product.  One thing that i noticed is that my full SQL Developer install does not have a full list of logical types.  I had to manual create a the ones that i use.  In the Data Modeler only install, all of the logical types were available out of the box.

  • New pc Model design. based on new bios tek. Logic

    here is the project image scans made from a drawing.
    http://lmtdbin.7pz.me/slmtdnp/proj2014/
    I have built older hw like this. and when i found the new bios tek was ok. i have put in a pc model design. should work better.
    later i can post the images in this post but for now i only have the image link addr. so later we will see.
    but i just got the page up and listing. i even have a windows text exe model. =) enjoy its good. and new. so
    and the intel post. =)
    https://software.intel.com/en-us/forums/topic/538240
    now i have already checked some of the use of this computer. system commands work. and i dont know all about system functions. it is in there. but it depends on how the development is going to be a command like "System ProgName" and then "the
    encrypted exe file" though it does not use command. one could be implimented alteast as of Terms
    the software development for this model. is very nice and apps should be availdable
    looks a little better with a second level to the design. even more space for custom implementation if needed
    inother words you or someone could add to the design with the second level added
    msg Seriel [NPEWTHDEVELOPMENT335PRODTSGOOD352ENJOYABLENEW-LAPTPMODEL402NITEJENOPUSRE] seriel for my records
    and a Good little bin to finsh the day. Thanx and Peace
    http://lmtdbin.7pz.me/slmtdnp/listthnx.zip
    here is a pdf of the project
    http://lmtdbin.7pz.me/slmtdnp/viosepc.pdf
    and the proj backup
    http://lmtdbin.7pz.me/slmtdnp/viosepg.zip

    Just for the hell of it, I decided to turn down my CPU multiplier, pump the bclk to 200, and see if I could get things working with my memory running at 1600. I left the DIMM voltage at Auto in BIOS, and booted into windows. Started up the MSI Overclocking center.... and it was reporting a DIMM voltage of 1.9. I was..... shocked.... I tried to change it to 1.65 in the OC center, but my machine locked, then it rebooted 3 times and reset it's bios settings. Things seem fine, don't think my CPU was damaged.... but seriously, what the hell?
    Mechsner, I know you've said you don't trust windows voltage readings. Could this be a case of inaccurate readings? Can the OC center not be trusted at all? It's matched my BIOS settings in the past.... but this time was just scary.

  • Data Model Design

    Hi Experts,
    In Current project I need to design data model and create data flow strategy for SD,MM,PP,FI modules from R/3.The client wants to use BOBJ on top of BI Info cubes/Reports.Based on KPI's given I need to do Data availability in R/3,Data extraction,Data model analysis and submit the documentation for that.Please guide me how to approach step by step so that I can go ahead with clear cut strategy.Any documentation if it is there please share with me.
    Regards
    Prasad

    You can find ASAP methodology and accelleretors related to modelling data here
    https://websmp203.sap-ag.de/roadmaps
    see the "ASAP Implementation Roadmap for SAP Exchange Infrastructure"  there are New roadmap content for SAP Business Intelligence.
    Regards,
    Sergio

  • Data model design in SAP BI

    Hi All,
    I have one requirement to design the data model for BI.  How to design a dataflow in BI. I know dataflow is different from data model. Could you pls let me know hoe to design it.
    Is there any model available ...so that i can refer. if not let me know clearly what is a datamodel and how to design it.
    Thanks,
    Jack

    Example of data flow:
    http://wiki.sdn.sap.com/wiki/download/attachments/44794331/a6.gif
    Data model:
    http://wiki.sdn.sap.com/wiki/download/attachments/36064/5.JPG

  • Business Object Model Design

    Hello Evryone,
    I'm designing a new application for Incident Management.
    There is an existing Incident System But, our application is targeted to end user facility.
    So, we have to use the existing Incident Management system to store and get data, so that Incident can be loaded on booth side.
    We access that datastore using WebServices with DAO Pattern.
    In the existing system, they have Incident Attribute like Status, Alert, Priority,... with Integer as main identifier.
    public class IncidentStatus {
         private int status;
         private String statusStr;
         public IncidentStatus () {
    }In my application, i would like to have a good OO Model.
    So, my idea is to use the Design Pattern "State" and/or "Strategy" for such a attribute.
    So that i would have class/interface such as
    - IncidentStatus (interface)
    - IncidentOpened (impl)
    - IncidentResolved (impl)
    and so on ...
    This involve a class for each case but, isn't it more OO oriented ?
    any comment ?
    Regards,
    Sebastien Degardin

    but do these IncidentStatus objects do anything other than represent the status? if not, I'd be inclined to agree with the other poster about enumerated types. if adding new ones dynamically is your bag, you could opt for having a single IncidentStatus class, and have instances which represent different statuses, described by (for instance) a String
    another question to ask yourself is "how likely is it that I'll need to add a new IncidentStatus?". probably not very often. in any case, if the purpose of the IncidentStatus is merely to indicate status, I'd be looking to have just one class to represent them, and a config file which describes the individual statuses. adding a new one wouldn't even need to involve a programmer

  • Dimensional model design for multiple relations btween a fact and dimension

    Hi,
    I'm new here, sorry if I ask dummy questions.
    I need to develop a dimensional datamodel to create some reports. The initial model has a transaction table. A transaction can be related to one or more customers, because of that the there is a customer_id column, but it can contains more id's, separated by commas. The customer table is standard : id/ name/etc.
    I need to create a report (I'm using OBI 10g if this is relevant) to show all the transactions related to a customer (prompt) and the report must contain the some transaction details, the id's of all customers related to that transaction and their names.
    For example, if I have a transaction with tranz_name = 'transaction_name' and customer_id = '1,2,3' and I need to select all the transactions related to customer 1, I need to show in the report :
    'transaction_name' , '1,2,3' , 'Customer_1, Customer2, Customer_3'.
    How can I design the dimensional datamodel to have support for this report? I was thinking to create an additional "cust_id" column in the fact table and for the above transaction to load 3 records in the fact table, by filling the cust_id with only one id (the PK of the fact table will be transaction_id + cust_id). But I have 2 problems :
    a) How can I create the "CustomerNames" column in the report?
    b) How can I select unique transactions if "all customers" is selected in the prompt?
    Thanks in advance for your help

    Are you using the OLAP Option in the database to define your report? If so, which version of the database do you have? If not, you may get a better response from an OBI specific forum such as "Business Intelligence Suite Enterprise Edition"
    Business Intelligence Suite Enterprise Edition

  • Best practise - Domain model design

    Hello forum,
    we're writing an application divided into three sub projects where one of the sub projects will be realized using J2EE and the other two sub projects are stand alone fat client applications realized using Swing. So that's the background...
    And now the questions:
    After doing some research on J2EE best practise topics I found the TransferObject-Pattern (http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html) which we certainly want to apply to the J2EE sub project and to one of the standalone client applications also. To avoid code duplications I like the "Entity Inherits Transfer Object Strategy" approach outlined in the document referenced above. But why does the entity bean inherit from the transfer object class and not vice versa? In my opinion the tranfer object adds additional functionality (coarse grained getData()-method) to the class and isn't it a design goal in OO languages that the class that extends a base class has more functionality than the base class?
    For the standalone application we want to use a similar approach and the first idea is to desgin the entitys and let the TO classes extend these entitys.
    When I get it right the basic idea behind all of these design schemes is the "Proxy pattern" but when I design it using the previously mentioned way (Entity <-- EntityTO) I will have a very mighty prox beeing able to execute all operations the base class is able to execute.
    Any tips and comments welcome!
    Thanks in advance!
    Henning

    Hello Kaj,
    at first - thanks for your fast response and sorry for coming back to this topic so late.
    After reading a bit more on patterns in general what about avoiding inheritance
    completely and using the proxy pattern instead (As explained eg.
    http://www.javaworld.com/javaworld/jw-02-2002/jw-0222-designpatterns.html here) - so moving the design to a "has a" relationship rather than an "is a" relationship.
    In the previous post you said that the client shouldn't be aware that there are entity beans and therefore the mentioned implementation was chosen - But if I implement it vice versa (Entity is base class, TO extends entity) and do not expose any of the methods of the entity bean I would achieve the same effect, or not? Clients are only able to work with the TOs.
    I have some headaches implementing it in SUN's recommended way because of the Serialization support necessary within the TOs. Implemented in SUN's way the Entity bean would also have serialization support which isn't necessary because they're persisted using Hibernate.
    Thanks in advance
    Henning

  • ORA-06510 Message error in Process Modeller Designer

    HI�
    I'M DAVE
    I HAVE SOME PROBLEMS USING DESIGNER 6i.
    I log on to Windows Designer tools then I open Process Modeller Tool and I try to modify the previuous model process but, when I add a new process in the previous PM1 SATISFY CUSTOMER ORDER diagram, the GUI for Process Modeller is crashed, and displays the next message: ORA-06510.
    I really don't know the reason. The error message manuals tells me I should answer to the DBA.
    ANY BODY CAN HELP ME?
    THANK YOU�
    DAVE
    [email protected]

    I have found this problem myself,
    the only workaround I found is to not run more that 5 mappings in parallel.
    I speculate that this is caused by the amount off cursors that are opened to run everything in parallel,
    If so, you might try to increase the parallel settings of your database.
    cheers
    Robbert

  • Private Virtual Database - Database model design

    I'm planing to design a new database model for a system that will integrate private virtual database. We will use private virtual database to use the same data structure for different users or systems.
    The systems are defined in a table.
    My question is what is the best way to maintain a good level of security but avoid too much overhead.
    1) We designed our model by adding an attribute and a foreign key in all our tables referring to the system that own the row.
    2) We decided later to limit the filter in main entity to avoid adding a filter in all our tables.
    But doing so let the child tables visible then accessed without a join to the main entity.
    Any recommendations/ideas for the best design in this context ?

    What was the objection to creating a filter on every table?
    The work and overhead by generalizing the filter into all tables.
    That would be the normal approach.
    I agree with you. Just need a confirmation it is the best and only true way.
    Another way would be to create view with inner join only in a separate schema or with permissions only in the views but i think it more overhead than defining the attribute in all tables. Its a much simpler approach.
    Thank you

Maybe you are looking for

  • Importing Flash .fla files

    I am taking over a client who has a .fla site with several fancy "Ribbon","Bubbles", and "Stripes" transitions I want to import. Is it easier to just edit it in Flash or to Bring it into Flash builder? I would like to at least bring in the original p

  • Windows Theme not applied after changing OS language

    Hi,     I have a theme(.theme file) which I have created and applied on my system. However after I change the language from "Control Panel > Region and Language" setting, my theme which was applied goes away. I tried retaining the theme by Enabling b

  • Photos and AppleTV

    How can I show photos on my tv using AppleTV?  The photos are on my Mac, sorted into folders.  AppleTV DOES show the photos, but not sorted into folders. My 10,000  or so photos are shown without folder structure.  This is totally impractical. I have

  • Import settings into cc 2014

    Just "upgraded" to CC (2014), which in traditional Adobe stone age style installs a completely new application. Adobe... why do you hate your customers? Now all the installed plugins, presets, workspaces and other customisations I use are completely

  • Refine Edge Tool Guidelines?

    I made an initial selection of a person and selected Refine Edge. I simply want to take the person from his current location and place him somewhere else. 1. Are there any general guidelines for how much feather to add? 2. What about for Radius? 3. A