Abstract
Object oriented programming languages as well as persistent object systems are usually accessed by explicit navigation along the relations (i.e. the pointers) between the objects. End users of a ”database”, however, prefer to have a query language, which allows them to specify database queries regardless of the mechanism that is used to navigate through the database. In this paper we show a simple technique for adding a query language to an object-oriented programming language. We translate the query, in our case an OQL query, into a program and execute this resulting program. So an ordinary program offers the results of the queries. The compilation and execution is done ”on the fly”, which means that the user is not aware of the translation. In this paper we present how the translator works, how to write such a translator, and the advantages of our chosen method.
Markus Knasmüller is on leave from Johannes Kepler University Linz, Department of Practical Computer Science (Systemsoftware).
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
Catell, R.G.G. (ed.): The Object Database Standard: ODMG 1993. Addision Wesley, Reading (1996)
Knasmüller, M.: Adding Persistence to the Oberon System. In: Mössenböck, H. (ed.) JMLC 1997. LNCS, vol. 1204. Springer, Heidelberg (1997)
Wirth, N., Gutknecht, J.: The Oberon System, Software – Practise and Experiences 19(9) (1989)
Agrawal, R., Gehani, N.H.: Ode: The Language and the Data Model. In: Proc. ACM SIGMOD 1989 Int’l Conf. Management of Data, Portland, Oregon, pp. 36–45 (1989)
Deux, O.: The Story of O2. IEEE Trans. on Knowledge and Data Enginnering 2(1), 91–108 (1990)
Fishman, D., et al.: Overview of the Iris DBMS. In: Kim, W., Lochovsky, F. (eds.) Object-Oriented Concepts, Databases, and Applications, pp. 219–250. Addision Wesley, Reading (1989)
Sakkinen, M.: More about ODMG-93 standard, and a bit about manifestos, Technical Report, Johannes Kepler University of Linz (1996)
Mössenböck, H.: A Generator for Production Quality Compilers. In: Proc. of 3rd Int. Compiler-Compiler Workshop, Schwerin, Schwerin. LNCS, Springer, Heidelberg (1991)
Knasmüller, M.: Oberon-D On Adding Database Functionality to an Object-Oriented Development Environment. Trauner-Verlag, Linz (1997)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2000 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Knasmüller, M. (2000). On Adding a Query Language to a Persistent Object System. In: Weck, W., Gutknecht, J. (eds) Modular Programming Languages. JMLC 2000. Lecture Notes in Computer Science, vol 1897. Springer, Berlin, Heidelberg. https://doi.org/10.1007/10722581_15
Download citation
DOI: https://doi.org/10.1007/10722581_15
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-67958-5
Online ISBN: 978-3-540-44519-7
eBook Packages: Springer Book Archive