SlideServe
Menu
Préférences
© SlideServe · v2026

Object-Relational Mapping with OJB: A Comprehensive Guide

jariah avatar
14 diapositives · 320 Views · Jun 26, 2013

Igor Seremet and Alex Berezhnoy dives into Object-Relational Mapping (O-R Mapping) using the ObjectRelationalBridge (OJB). It explores the necessity of O-R Mapping, compares OJB with other tools, and provides a step-by-step tutorial on mapping classes to tables via XML, utilizing the PersistenceBroker for database interactions. The presentation covers essential concepts, such as ODMG and JDO standards, as well as features like transaction isolation levels, polymorphism support, and lazy materialization, making it an invaluable resource for Java developers.

Object-Relational Mapping with OJB: A Comprehensive Guide - slide 1
01 / 14Object-Relational Mapping with OJB: A Comprehensive Guide
1 / 17

Télécharger la présentation

Object-Relational Mapping with OJB: A Comprehensive Guide
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Object-Relational Mapping with ObJectRelationalBridge (OJB) Presented by Igor Seremet Alex Berezhnoy

  2. Presentation Preview • Goal of this presentation • The need for Object-Relational Mapping • OJB and other O-R Mapping tools • OJB Tutorial • Mapping Classess to Tables via XML • Coding with PersitanceBroker • ODMG, JDO and more about OJB

  3. Are You Doing O-R Mapping?

  4. O-R Mapping Relational Model O-R Mapping Object Oriented Model Manual JDBC coding O-R Mapping Tools

  5. Signsoft intelliBO FireStorm Infobjects ObjectDRIVER LiDO InterSystems Cache SimpleOrm VBSF The ProductivityEnvironmentForJava (PE:J) JDX Cayenne TopLink EnterpriseObjectsFramework Jakarta ObjectRelationalBridge Jaxor Hibernate Expresso DataBind JdoGenie Abra KodoJdo Persistence FrontierSuite for J2EE & J2SE FrontierSuite for JDO BasicWebLib iBATIS DB Layer Java Ultra-Lite Persistence (JULP) Castor O-R Mapping Tools ObJectRelationalBridge (OJB) • One of the most popular • Open source, supported by Jakarta • Pure Java • Used by someone we know

  6. Getting Started with OJB • Downloading OJB • Installing OJB • Specifying Database Connection • http://db.apache.org/ojb/

  7. SQL Table Definition: OJB XML Mapping (repository.xml): Java Class Definition: O-R Mapping

  8. PersistenceBroker: storing How much JDBC code would this take?

  9. PersistenceBroker: retrieval & update

  10. PersistenceBroker: deletion

  11. SQL Table Definitions: Java Class Definitions: OJB XML Mapping (repository.xml)

  12. Other Ways of Using OJB • ODMG: Object Data Management Group • The standard for storing objects • OJB is fully complient • JDO: Java Data Objects • Sun’s API for transparent persistance of Java objects • Complete implementation is in the works

  13. Mapping support for 1:1, 1:M, M:N relationships Persistance by reachability: all objects associated to a persistent object by references are made persistent too Classess can be mapped to any number of JDBC data sources Configurable Lazy Materialization through Proxy support Support for Polymorphism and ODMG Extents Managed and Native sequence numbering PreparedStatement reuse Integrates with EJB Prefetched relationships Supports 4 transaction isolation levels: Read uncommited Read commited Repeatable read Serializable Many Features of OJB

  14. Summary • O-R Mapping • OJB • Mapping via XML • PersistanceBroker • Creation • Retrieval • Update • Deletion • ODMG & JDO