master detail relationships

Upload: tamizhmuhilp

Post on 06-Apr-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 Master Detail Relationships

    1/10

    HANDLING MULTIPLEFORMS IN ORACLEMASTER-DETAILRELATIONSHIPS

  • 8/3/2019 Master Detail Relationships

    2/10

    Multiple forms

    The application created in Oracle consistof a number of forms, each handle aspecific task.

    These multiple forms interact seamlessly

    to provide the user with a single, unifiedGUI.

    In order to do this, the forms must be

    able to invoke and run other forms. The built-ins control the invocation of

    multiple forms by the application.

  • 8/3/2019 Master Detail Relationships

    3/10

    Built-ins that invokemultiple forms

    New-Form : Closes the currently active form

    ( after performing all validation and committingchanged data) and opens a new form.

    Call-Form : Suspends the currently active formand opens another one. The calling formremains open, but it is in the background and itcannot be interacted with. As soon as the

    current form exits, the calling form is resumedat the point where it was supported. Committingin the newly opened form will commit allpending transactions in both the forms.

  • 8/3/2019 Master Detail Relationships

    4/10

    Built-ins that invokemultiple forms- contd..

    Open-Form : Opens a completely newform, while leaving the calling form openand active as well. The user can switch

    between forms.Multiple forms open at the same time

    take more memory on the client. Ifanother user has the same form open, it

    will share the memory on the server thatis used by the program units.

  • 8/3/2019 Master Detail Relationships

    5/10

    Master-Detail Relationships In real time database programming, the

    data in one table is related to the data inother tables.

    The tables can be related in one of threedifferent ways: one-to-one, one-to-many

    or many-to-many.

    A one-to-many relationship, often referredto as a "master-detail" or "parent-child"

    relationship, is the most usual relationshipbetween two tables in a database.

  • 8/3/2019 Master Detail Relationships

    6/10

    Common scenarios includecustomer/purchase data,

    patient/medical-record data, andstudent/course-result data.

    A master-detail page is one where amaster object and its related detail

    object are represented on the samepage.

    The detail objects are displayed basedon the current record selection in the

    master object.

  • 8/3/2019 Master Detail Relationships

    7/10

    A master object can be a form, list or treeof items, and a detail section can be aform, list or tree of items typically placedeither below or next to the master object.

    Selecting an item from the master listcauses the details of that item to be

    populated in the detail pane.

    The Master-Detail relationship is acommon relationship between entities in abusiness.

    In an Entity-Relationship diagram, theseare shown as "One to Many" relationships.

  • 8/3/2019 Master Detail Relationships

    8/10

    In a physical database design, asingle Master record references

    one or more detail records inanother table.

    A record in the detail table willrelate to exactly one masterrecord in the master table.

    Another name for thisrelationship is called parent-child.

  • 8/3/2019 Master Detail Relationships

    9/10

    Examples

    Examples of this relationship include:

    A Customer Order with many Order Items.

    A Department with many Employees. An Employee with many Dependents.

    A Company with many Branch Offices.

    A Recipe with many Recipe Steps.

    An Inventory location with manyInventory Items.

  • 8/3/2019 Master Detail Relationships

    10/10

    Master-DetailRelationship Example