Download Object oriented databases

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
Object oriented
databases
By Claudia Buder
21.05.2003
Programming
1
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
2
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

3
Transparent persistence
4
Lack of impedance mismatch
5
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 ...
6
Database application

Data collection applications

Information analysis applications

Applications handling BLOBs
7
Navigation with an object database
8
ODB using architectures

Stand-alone architecture

Architecture with existing data sources
9
When an ODBMS should be used
Business need
 High performance
 Complex data
 Reduction of development and
maintenance costs

10
Resources
http://www.servicearchitecture.com/object-orienteddatabases/
 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

11
Thanks for your attention !
Questions ???
12
Related documents