State the two-way associations, Database Management System

Assignment Help:

Two-way Associations

Mostly, associations are travel in both directions, although not usually with same frequency. There are three approaches for the implementation.

  • In bi-directional associations, if one direction association is seldom used, then we should implement it as unidirectional association. Searching can perform reverse association. This way, we can reduce storage and update cost.
  • Implementing it as a bi-directional association using the several techniques discussed in previous sections will turn up as shown in Figure. This approach provides faster access but also requires updating of other attributes in case of any change otherwise the link will become inconsistent.

Implementing it as a separate association object, i.e., independent of any class as shown in Figure. The association object can be implemented using two objects: one in forward direction and the other one in the reverse direction. This cause increases efficiency when hashing is used, instead of attribute pointer.

 

584_two way association.png

  Figure:  Implementation of association as an object


Related Discussions:- State the two-way associations

Text mining, Text Processing: Use readLines to read SOU.txt into R. Cr...

Text Processing: Use readLines to read SOU.txt into R. Create a vector called Pres containing the names of the presidents giving each speech. To do this, rst identify the lin

Support by adding indexes, Support by Adding Indexes Multiple indexes c...

Support by Adding Indexes Multiple indexes can be used to access a data file by multiple access paths. In such a scheme only single copy of the data is consider, only the numbe

State the component diagram, State the Component Diagram A component d...

State the Component Diagram A component diagram represents a set of component and relationships among them. In a dynamic model, component diagram is used to model physical com

What are the several forms of identity, What are the several forms of ident...

What are the several forms of identity? a) Value b) Name c) Built-in

What is indexed sequential file organization, What is indexed sequential fi...

What is indexed sequential file organization? What are the applications of this organization?  Ans: An index file can be employed to effectively overcome the problem of storing

Database model, Why older data models are being replaced by new data modell...

Why older data models are being replaced by new data modelling 100 words accepted#

Explain the lock based protocol, Lock Based Protocol A lock is nothing ...

Lock Based Protocol A lock is nothing but a mechanism that tells the DBMS whether a particular data item is being used by any transaction for read/write purpose. As there are t

Create student database and retrieve course taught by king, Create student ...

Create student database and retrieve course name taught by king? STUDENT (name, student#, class, major) COURSE (course name, course#, credit hours, department) SECTION (secti

Illustrate the term- abstracting out common behaviour, Illustrate the term-...

Illustrate the term- Abstracting Out Common Behaviour Inheritance is not every time recognised during analysis phase of development, thus it is necessary to re-evaluate object

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd