Skip to main content

Using UML/OCL Constraints for Relational Database Design

  • Conference paper
  • First Online:

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

Abstract

Integrating relational databases into object-oriented applications is state of the art in software development practice. In database applications, it is beneficial if constraints like business rules are encoded as part of the database schema and not in the application programs. The Object Constraint Language (OCL) as part of the Unified Modeling Language (UML) provides the posssibility to express constraints in a conceptual model unambiguously. We show how OCL, UML and SQL can be used in database constraint modeling, and discuss their advantages and limitations. Furthermore, we present patterns for mapping OCL expressions to SQL code.

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

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   109.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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Blaha, M., Premerlani, W.: Object-Oriented Modeling and Design for Database Applications. Prentice Hall, 1998

    Google Scholar 

  2. Booch, G., Rumbaugh, J., Jacobson, I.: The Unified Modeling Language User Guide. Addison-Wesley, 1999

    Google Scholar 

  3. Bruce, K., Whitenack, B.: Crossing Chasms-A Pattern Language for Object-RDBMS Integration. Knowledge Systems Corp., ftp://members.aol.com/kgb1001001/Chasms/chasms.pdf

  4. Date, C.: An Introduction to Database Systems. Volume I, Fifth Edition, Addison-Wesley, 1990

    Google Scholar 

  5. Demuth, B., Geppert, A., Gorchs, T.: Algebraic Query Optimization in the CoOMS Structurally Object-oriented Database System. in: Freytag, Ch., Maier, D., Vossen, G. (Ed.): Query Processing For Advanced Database Systems. Morgan Kaufmann, 1994

    Google Scholar 

  6. Dresden UML Toolset, http://www-st.inf.tu-dresden.de/UMLToolset

  7. Eisenberg, A., Melton, J.: SQL: 1999, formerly known as SQL-3. ACM SIGMOD Record, 22(1999)1, 131–138

    Article  Google Scholar 

  8. Elmasri, R., Navathe, S.: Fundamentals of Database Systems. Benjamin/Cummings, 1989

    Google Scholar 

  9. Gogolla, M., Richters, M.: On Constraints and Queries in UML. in: Schader, M., Korthaus, A., (Ed.): The Unified Modeling Language. Technical Aspects and Applications. Physica-Verlag, 1998

    Google Scholar 

  10. Korth, H., Silberschatz, A.: Database System Concepts. Second Edition. McGraw-Hill, 1991

    Google Scholar 

  11. Melton, J., Simon, A.: Understanding the New SQL: A Complete Guide. Morgan Kaufmann, 1993

    Google Scholar 

  12. Melton, J.: SQL’s Stored Procedures. A Complete Guide to SQL/PSM. Morgan Kaufmann, 1998

    Google Scholar 

  13. Olson, St. et. al.: The Sybase Architecture for Extensible Data Management. Bulletin of the Technical Committee on Data Engineering, IEEE Computer Society, 21(1998)3, 12–24

    Google Scholar 

  14. OMG UML Specification v. 1.3 draft

    Google Scholar 

  15. Ricardo, C.: Database Systems. Principles, Design, and Implementation. Macmillan, 1990

    Google Scholar 

  16. Schmidt, A.: Untersuchungen zur Abbildung von OCL-Ausdruecken auf SQL. Technische Universitaet Dresden, Diplomarbeit, 1998

    Google Scholar 

  17. Simons, A., Graham, I.: 37 Things that Don’t Work in Object-Oriented Modeling with UML. in: Kilov, H., Rumpe, B. (Ed.): Second ECOOP Workshop on Precise Behavioral Semantics. Technical Report, Technische Universitaet Muenchen, TUM-19813, Juni 1998

    Google Scholar 

  18. Teorey, T.: Database Modeling & Design. The Fundamental Principles. Second Edition, Morgan Kaufmann, 1990

    Google Scholar 

  19. Warmer, J., Kleppe, A.: The Object Constraint Language. Precise Modeling with UML. Addison-Wesley, 1999

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Demuth, B., Hussmann, H. (1999). Using UML/OCL Constraints for Relational Database Design. In: France, R., Rumpe, B. (eds) «UML»’99 — The Unified Modeling Language. UML 1999. Lecture Notes in Computer Science, vol 1723. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-46852-8_42

Download citation

  • DOI: https://doi.org/10.1007/3-540-46852-8_42

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-66712-4

  • Online ISBN: 978-3-540-46852-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics