Jeff Webb Maria Baron Chris Hundersmarck OJB.NET Jeff Webb Maria Baron Chris Hundersmarck
What is OJB.NET? Introduction Features Demonstrations
What is OJB.NET Copied directly from OJB, then modified. Created and worked on by 1 person: Richard Beauchamp An object-to-relational persistence tool for the .NET platform What is a persistence tool? Persistence tool: allows the objects exist even after the application is done running.
Introduction OJB.NET enables you to: easily transfer data between your middle-tier .NET objects and a relational database. Reverse- engineer your database schema Automatically generate .NET domain-model classes. query and persist instances of these classes at runtime
Introduction Improves Developer Productivity Maintains Data Integrity Improves Performance
Developer Productivity Automatically generates: Domain model classes Mapping b/t domain model classes and database schema SQL statements Domain model classes: Entities->automatically generates classes for these entities. Automatically generating your SQL create, insert, update and delete statements at runtime.
Data integrity Maintains data integrity by: Integrated transaction support Configurable transaction isolation levels Optimistic Concurrency support Strict quality control. Optimistic Concurrency support: Helps prevent deadlocks and other problems by making a copy of the data in the database before you make your transaction. It then makes sure that noone else has made a transaction and corrupted the data in the database before you have completed yours. Strict quality control: Over 135 automated NUnit regression tests are integrated into the OJB.NET build.
Performance Provides excellent performance by: App-domain caching. Use of ADO.NET’s DataReader. Lazy loading Use of the high-performance ADO.NET DataReader (rather than a DataSet) to retrieve values from the database.
Features For a complete list of features, visit: http://ojb-net.sourceforge.net/About/Features.html
Features Persistable object query support. Persistable object code generator. Conversion of database types to .NET types and vice-versa at runtime. Persistable object query support queries are made against persistable objects rather than directly against the database tables. Results are returned as a strongly typed persistable object or list of persistable objects Persistable object code generator. This speeds-up the development of persistable objects as they are automatically generated rather than hand-coded, and reduces bugs as hand-coding and keeping the o-r mapping file in sync with the persistable objects is error prone Conversion of database types to .NET types and vice-versa at runtime. For example, conversion from a .NET enumeration to a database VARCHAR
Features Mapping support for 1:1, 1:n, and m:n associations. Lazy loading of object references and collections Connection pooling support
Structure User Interface QueryFacade (I) QueryFactory Db AccessLayer BusinessLogicFacade QueryFacade (I) QueryFactory Db AccessLayer
Helpful links Download: http://sourceforge.net/project/showfiles.php?group_id=81313 Project page: http://ojb-net.sourceforge.net/
Demonstration…