Skip to main content

Parametric Polymorphism and Orthogonal Persistence

  • Conference paper
  • First Online:
Objects and Databases (SODB 2000)

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

Included in the following conference series:

Abstract

Parametric classes come with non-trivial subtleties even in the paradigm of orthogonal persistence. Orthogonal persistence guaran- tees that objects of any type, including class objects, may persist. But a parametric class is not a Java type, and its class object does not exist. Further subtleties in the Java technology extended with orthogonal per- sistence are caused by the existence of both the persistent store and Java class files. Neither store was designed with parametric classes in mind. This paper presents a technique for implementing parametric classes in the Java technology extended with orthogonal persistence. The techni- que is based on a suitable representation of a parametric class as a Java class file, an extended class loader which handles instantiation of such a class, and an extension of the Java Core Reflection classes. Extending these final classes is a non-trivial experiment and requires complete re- compilation of the Java system. The overall effect amounts to a new Java Virtual Machine that extends the standard one. However, this extension does not affect correct performance of Java programs.

This material is based upon work supported by the NSF under grant number IIS- 9811452.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. O. Agesen, S. Freund, and J. C. Mitchell, Adding type parameterization to Java, Proceedings of the OOPSLA’ 97 Conference, pp. 49–65, ACM, 1997.

    Google Scholar 

  2. S. Alagić, Type checking OQL queries in the ODMG type systems, ACM Transactions on Database Systems, 24 (3), pp. 319–360, 1999.

    Article  Google Scholar 

  3. S. Alagić, A family of the ODMG object models, invited paper, Proceedings of ADBIS’ 99, Lecture Notes in Computer Science 1691, pp. 14–30, 1999.

    Google Scholar 

  4. S. Alagić, O2 and the ODMG Standard: do they match?, Theory and Practice of Object Systems, 5 (4), pp. 239–247, 1999.

    Article  Google Scholar 

  5. S. Alagić, J. Solorzano, and D. Gitchell, Orthogonal to the Java imperative, Proceedings of ECOOP’ 98, Lecture Notes in Computer Science 1445, pp. 212–233, Springer, 1998.

    Google Scholar 

  6. S. Alagić, The ODMG object model: does it make sense?, Proceedings of the OOPSLA’ 97 Conference, pp. 253–270, ACM, 1997.

    Google Scholar 

  7. M. Atkinson and R. Morrison, Orthogonally persistent object systems, VLDB Journal 4, pp. 319–401, 1995.

    Article  Google Scholar 

  8. M. Atkinson, L. Daynes, M. J. Jordan, T. Printezis, and S. Spence, An orthogonally persistent JavaTM, ACM SIGMOD Record 25, pp. 68–75, ACM, 1996.

    Article  Google Scholar 

  9. M. Atkinson, F. Bancilhon, D. DeWitt, K. Dittrich, and S. Zdonik, The object-oriented database system manifesto, Proceedings of the First Object-Oriented and Deductive Database Conference (DOOD), pp. 40–75, clKyoto, 1989.

    Google Scholar 

  10. G. Bracha, M. Odersky, D. Stoutmire and P. Wadler, Making the future safe for the past: Adding genericity to the JavaTM programming language, Proceedings of OOPSLA’ 98, pp. 183–200, ACM, 1998.

    Google Scholar 

  11. B. Bretl, A. Otis, M. San Soucie, B. Schuchardt, and R. Venkatesh, Persistent Java objects in 3 tier architectures, in: R. Morrison, M. Jordan, and M. Atkinson: Advances in Persistent Object Systems, pp. 236–249, Morgan Kaufmann Publishers, 1999.

    Google Scholar 

  12. R. G. G. Cattell, D. K. Barry, M. Berler, J. Eastman, D. Jordan, C. Russel, O. Schadow, T. Stanieda, The Object Data Standard: ODMG-3.0, Morgan Kaufmann, 2000.

    Google Scholar 

  13. R. Cartwright and G. L. Steele Jr., Compatible genericity with run-time types for the JavaTM programming language, Proceedings of OOPSLA’ 98, pp. 201–215, ACM, 1998.

    Google Scholar 

  14. J. Gosling, B. Joy, and G. Steele, The Java TM Language Specification, Addison-Wesley, 1996.

    Google Scholar 

  15. M. Jordan and M. Atkinson, Orthogonal persistence for Java-A mid-term report, in: R. Morrison, M. Jordan, and M. Atkinson: Advances in Persistent Object Systems, pp. 335–352, Morgan Kaufmann Publishers, 1999.

    Google Scholar 

  16. T. Lindholm and F. Yellin, The Java TM Virtual Machine Specification, Addison-Wesley, 1996.

    Google Scholar 

  17. B. Meyer, Eiffel: The Language, Prentice-Hall, 1992.

    Google Scholar 

  18. M. Odersky and P. Wadler, Pizza into Java: translating theory into practice, Proceedings of the POPL Conference, ACM, pp. 146–159, 1997.

    Google Scholar 

  19. J. Solorzano and S. Alagić, Parametric polymorphism for JavaTM: A reflective solution, Proceedings of OOPSLA’ 98, pp. 216–225, ACM, 1998.

    Google Scholar 

  20. K. K. Thorup and M. Torgesen, Unifying genericity, Proceedings of ECOOP’ 99, Lecture Notes in Computer Science 1628, pp. 186–204, Springer, 1999.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Alagić, S., Nguyen, T. (2001). Parametric Polymorphism and Orthogonal Persistence. In: Dittrich, K., Guerrini, G., Merlo, I., Oliva, M., Rodriguez, M. (eds) Objects and Databases. SODB 2000. Lecture Notes in Computer Science, vol 1944. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44677-X_2

Download citation

  • DOI: https://doi.org/10.1007/3-540-44677-X_2

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41664-7

  • Online ISBN: 978-3-540-44677-4

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics