1 / 14

Object-Relational Mapping with O b J ectRelational B ridge (OJB)

Object-Relational Mapping with O b J ectRelational B ridge (OJB). Presented by Igor Seremet Alex Berezhnoy. 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

jariah
Download Presentation

Object-Relational Mapping with O b J ectRelational B ridge (OJB)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related