Abstract
One of the central notions in database modelling is the notion of a database view. A database view closely corresponds to the notion of derived class in UML. This paper will show how the notion of a relational database view can be correctly expressed as a derived class in UML/OCL (version 2.0). A central part of our investigation concerns the generality of our manner of representing relational views in OCL. Since, in general terms, a database view closely corresponds to the notion of a named query, an important problem that we address in our paper is the expressiveness of OCL as a query language. In particular, we will discuss the relational completeness of OCL (w.r.t the relational algebra). We will show that OCL (version 2.0) is relationally complete in a minimal sense, but not in a (desired) maximal sense. As a consequence, we will argue for certain language extensions in OCL in order to achieve that OCL is maximally relationally complete.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Akehurst, D.H., Bordbar, B.: On Querying UML data models with OCL. In: Gogolla, M., Kobryn, C. (eds.) UML 2001. LNCS, vol. 2185, p. 91. Springer, Heidelberg (2001)
Balsters, B., de By, R.A., Zicari, R.: Sets and constraints in an object-oriented data model. In: Proceedings Seventh European Conference on Object-Oriented Programming (1993)
Blaha, M., Premerlani, W.: Object-oriented modeling and design for database applications. Prentice Hall, Englewood Cliffs (1998)
Balsters, H., Spelt, D.: Automatic verification of transactions on an objectoriented database. In: Cluet, S., Hull, R. (eds.) DBPL 1997. LNCS, vol. 1369, Springer, Heidelberg (1998)
Balsters, B., de Vreeze, C.C.: A semantics of object-oriented sets. In: Third International Workshop on Database Programming Languages (DBPL, eds. Abiteboul, Kannelakis), Morgan Kaufmann Publishers, California (1992)
Date, C.J.: An introduction to database systems. Addison Wesley, Reading (2000)
Demuth, B., Hussmann, H.: Using UML/OCL constraints for relational database design. In: France, R.B., Rumpe, B. (eds.) UML 1999. LNCS, vol. 1723, pp. 598–613. Springer, Heidelberg (1999)
Demuth, B., Hussmann, H., Loecher, S.: OCL as a specification language for business rules in database applications. In: Gogolla, M., Kobryn, C. (eds.) UML 2001. LNCS, vol. 2185, p. 104. Springer, Heidelberg (2001)
Elmasri, R., Navathe, S.B.: Fundamentals of database systems. Addison Wesley, Reading (2000)
Gogolla, M., Richters, M.: On constraints and queries in UML. In: Proceedings UML 1997 Workshop The Unified Modeling Language – Technical Aspects and Apllications (1997)
Garcia-Molina, H., Ullman, J.D., Widom, J.: Database systems. Prentice Hall, Englewood Cliffs (2002)
Mandel, L., Cengarle, M.V.: On the expressive power of OCL. In: Wing, J.M., Woodcock, J.C.P., Davies, J. (eds.) FM 1999. LNCS, vol. 1708, p. 854. Springer, Heidelberg (1999)
Response to the UML 2.0 OCL RfP, Revised Submission, Version 1.6, January 6 (2003)
Warmer, J.B., Kleppe, A.G.: The object constraint language. Addison Wesley, Reading (1999)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Balsters, H. (2003). Modelling Database Views with Derived Classes in the UML/OCL-framework. In: Stevens, P., Whittle, J., Booch, G. (eds) «UML» 2003 - The Unified Modeling Language. Modeling Languages and Applications. UML 2003. Lecture Notes in Computer Science, vol 2863. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-45221-8_25
Download citation
DOI: https://doi.org/10.1007/978-3-540-45221-8_25
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-20243-1
Online ISBN: 978-3-540-45221-8
eBook Packages: Springer Book Archive