際際滷

際際滷Share a Scribd company logo
db4objects


                         Object-Oriented Database
                         March 2010




   Jaider Ariza  Luc Van Cam  Bala Singam
db4objects


Content
 Installation
 Basic usage
 Sample code
 Demo
 Issues
db4objects


Installation
 Software available from web site: http://db4o.
  com/
 Latest production version: 7.12
 Three releases: For Java, .NET 2.0, and .NET
  3.5
 Object Manager is a plug-in for Visual Studio
  to manage databases.
db4objects


Basic Usage
 Two modes of operation: Local and
  Client/Server
 Demo is in .NET
 To program with db4o, add reference to 1
  DLL: Db4objects.Db4o.dll
db4objects


Sample Code
 Open a database
  IObjectContainer db = Db4oEmbedded.OpenFile
  (DatabaseFileName)
 Store an object
  db.Store(newStudent)
 Retrieve objects by QBE
  db.QueryByExample(sampleStudent)
 Update an object
  db.Store(existingStudent)
 Delete an object
  db.Delete(aStudent)
db4objects


Demo
 One-to-one
 QBE and Queries
 Inheritance
db4objects


CRUDs Operations
db4objects


Source Code  Model
db4objects


Source Code II  BD Layer
db4objects


Issues
 Data depends on classes
 Constraints are not saved at database level
 Portability
db4objects


Questions




            ?

More Related Content

DB4O - OO Database Implementation