Skip to main content

MOOD An architecture for object oriented access to a relational data base

  • Part V: Prototypes
  • Chapter
  • First Online:
LOGIDATA+: Deductive Databases with Complex Objects

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 701))

  • 125 Accesses

Abstract

In this paper we describe MOOD, a system which may be used to easily and efficiently build C++ programs accessing a relational database. MOOD has its own data model, which is Object-Oriented, and supports object identity, generalization hierarchies, and object sharing; by processing schema definitions, the MOOD system builds a relational schema and a C++ Class Library that enable the interaction between a C++ programming environment and a conventional relational database. We associate a C++ class to each class in the MOOD schema. Methods of this class may be used to access, create or modify MOOD objects. In particular, MOOD primitives provide tools for expressing complex, set-oriented queries to extract objects by traversing the MOOD schema along semantics links. These primitives generate SQL queries in order to extract relevant tuples and assign them to C++ objects; the interface thus developed solves the impedence mismatch between C++ (recordoriented) and SQL (set-oriented).

MOOD can be used as a low-level programming environment for building applications; in particular, it is currently considered as an environment for implementing the Logidata+ language.

MOdena Object Database

This work has been partially supported by CINECA, CICAIA — Universitâ degli Studi di Modena, and by Progetto Finalizzato Informatica e Calcolo Parallelo, Subproject LOGIDATA+

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. P. Atzeni, F. Cacace, S. Ceri, L. Tanca: “The Logidata+ Model”; Rapporto Interno, Obiettivo Logidata+, 1990.

    Google Scholar 

  2. F. Cacace, S. Ceri, S. CrespiReghizzi, L. Tanca, R. Zicari: “The LOGRES Project: Integrating Object Oriented Data Modeling with a Rule Based Programming Paradigm.”; Rapporto Interno n. 89039, Politecnico di Milano, Dipartimento di Elettronica, 1989.

    Google Scholar 

  3. S. Ceri, d. Gottlob, L. Tanca: “Logic Programming and Databases”; Springer Verlag, 1990.

    Google Scholar 

  4. B. Stroustrup: “The C++ Programming Language”, Addison Wesley, 1986.

    Google Scholar 

  5. S. Ceri, d. Gottlob, G. Wiederhold: “Interfacing relational databases and Prolog efficiently.”; Proc. 1st Int. Conf. Expert Database Systems, Charleston, 1986.

    Google Scholar 

  6. E. Ioannidis et al.: “BERMUDA — an architectural perspective on interfacing Prolog to a database machine.”; Computer Science Technical Report 723, University of Wisconsin, Madison, Wis. Oct. (1987).

    Google Scholar 

  7. F. Gozzi: “Design and implementation of efficient interfaces between logic programming environments and relational databases — complex predicates (in Italian)”; Diploma Dissertation, Computer Science School, University of Modena, Modena, Italy, Dec. (1987).

    Google Scholar 

  8. M. Lugli: “Design and implementation of efficient interfaces between logic programming environments and relational databases — metainterpreter and simple predicates (in Italian)”; Diploma Dissertation, Computer Science School, University of Modena, Modena, Italy, Dec. (1987).

    Google Scholar 

  9. O. Deux et al: “The O2 System”; Communications of the ACM, October 1991, Vol. 34 No. 10

    Google Scholar 

  10. C. Lamb, G. Landis, J. Orenstein, D. Weinreb: “The Objectstore Database System”; Communications of the ACM, October 1991, Vol. 34 No. 10

    Google Scholar 

  11. P. Butterworth, A. Otis, J. Stein: “The Gemstone Object Database Management System”; Communications of the ACM, October 1991, Vol. 34 No. 10

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Paolo Atzeni

Rights and permissions

Reprints and permissions

Copyright information

© 1993 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Lugli, M., Nini, L., Ceri, S. (1993). MOOD An architecture for object oriented access to a relational data base. In: Atzeni, P. (eds) LOGIDATA+: Deductive Databases with Complex Objects. Lecture Notes in Computer Science, vol 701. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0021900

Download citation

  • DOI: https://doi.org/10.1007/BFb0021900

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-56974-9

  • Online ISBN: 978-3-540-47844-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics