Presentation is loading. Please wait.

Presentation is loading. Please wait.

21.05.2003Programming 1 Object oriented databases By Claudia Buder.

Similar presentations


Presentation on theme: "21.05.2003Programming 1 Object oriented databases By Claudia Buder."— Presentation transcript:

1 21.05.2003Programming 1 Object oriented databases By Claudia Buder

2 2 Content About OODB Transparent persistence  Lack of impedance mismatch  How to access data Database application Navigation with an object database ODB using architectures When an ODBMS should be used

3 3 About object oriented databases Integration of database capabilities with object programming language capabilities makes database objects appear as programming language objects Most used query language OQL Uses also OOA and OOD

4 4 Transparent persistence

5 5 Lack of impedance mismatch

6 6 Data access: e.g. Java import org.odmg.*; import java.util.Collection; Implementation impl = new com.vendor.odmg.Implementation(); Database db = impl.newDatabase(); Transaction txn = impl.newTransaction(); try { db.open("addressDB", Database.OPEN_READ_WRITE); txn.begin(); // perform query OQLQuery query = new OQLQuery( "select x from Person x where x.name = \"Doug Barry\""); Collection result = (Collection) query.execute(); Iterator iter = result.iterator(); // iterate over the results while ( iter.hasNext() ) { Person person = (Person) iter.next(); // do some addition processing on the person (now shown) // now traverse to the address object and update its value person.address.street = "13504 4th Avenue South"; } txn.commit(); db.close(); } //exception handling would go here...

7 7 Database application Data collection applications Information analysis applications Applications handling BLOBs

8 8 Navigation with an object database

9 9 ODB using architectures Stand-alone architecture Architecture with existing data sources

10 10 When an ODBMS should be used Business need High performance Complex data Reduction of development and maintenance costs

11 11 Resources http://www.service- architecture.com/object-oriented- databases/ http://www.service- architecture.com/object-oriented- databases/ http://www.sei.cmu.edu/str/descriptions/oo database.html http://www.sei.cmu.edu/str/descriptions/oo database.html http://www.cisco.com/univercd/cc/td/doc/pr oduct/rtrmgmt/cw2k4mw/mwfm201/mwfmt op/33oql.html http://www.cisco.com/univercd/cc/td/doc/pr oduct/rtrmgmt/cw2k4mw/mwfm201/mwfmt op/33oql.html

12 12 Thanks for your attention ! Questions ???


Download ppt "21.05.2003Programming 1 Object oriented databases By Claudia Buder."

Similar presentations


Ads by Google