Design of a class library for association relationships

  • Authors:
  • Kasper Østerbye

  • Affiliations:
  • IT University of Copenhagen

  • Venue:
  • LCSD '07 Proceedings of the 2007 Symposium on Library-Centric Software Design
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Association is an important relationship that is supported in both UML and entity relationship database modeling tools. However, there is no language or library support in current object-oriented languages for implementing an association relationship. Instead, a complex implementation using references or collections of references must be handcrafted and laboriously maintained each time an association relationship is needed. In this paper, we develop an approach to supporting the association relationship through the design of a reusable class library that hides most of the complexity and guarantees that the consistency of the relationship is maintained automatically. Our current library implementation in C# draws on generic types with runtime type instantiation, runtime reflection on type parameters, annotations on classes, and runtime code generation. This set of language features seems to be necessary to provide effective support for association relationships.