No se
Páginas: 87 (21740 palabras)
Publicado: 24 de marzo de 2012
db4o is the native Java, .NET and Mono open source object database. This tutorial was written to get you started with db4o as quickly as possible. Before you start, please make sure that you have downloaded the latest db4o distribution from the db4objects website.
Join the db4o Community Join the db4o community for help, tips and tricks. Ask for help in the db4o forums at any time.And take a look at additional resources on the community website. If you want to stay informed, subscribe to our db4o blogs
Links In order to access free developer resources you may want to register on db4o developer website. Feel free register to the forums http://www.db4o.com/Users/register.aspx. And here are some further links on developer.db4o.com that you may find useful: All Downloads SVNRepository Community Projects
Download Contents
The db4o Java distribution comes as one zip file, db4o-8.0-java.zip. When you unzip this file, you get the following directory structure:
Please take a look at all the supplied documentation formats to choose the one that works best for
www.db4o.com
you:
.
db4o-8.0/doc/api/index.html The API documentation for db4o is supplied asJavaDocs HTML files. While you read through this tutorial it may be helpful to look into the API documentation occasionally.
db4o-8.0/doc/reference/index.html The reference documentation is a complete compilation for experienced db4o users.
db4o-8.0/doc/tutorial/index.html This is the interactive HTML tutorial. Examples can be run "live" against a db4o database from within the browser. In orderto use the interactive functionality a Java JRE 1.3 or above needs to be installed and integrated into the browser. Java security settings have to allow applets to be run. If you have problems using the interactive functionality, please refer to Tutorial Troubleshooting.
db4o-8.0/doc/tutorial/db4o-8.0-tutorial.pdf The PDF version of the tutorial allows best fulltext search capabilities.www.db4o.com
.
1. First Glance
Before diving straight into the first source code samples let's get you familiar with some basics.
1.1. The db4o engine The db4o object database engine consists of one single core jar file. In addition you may want to use client/server library or optional components. You may also get it all in a single jar "db4o-all":
db4o-8.0-core-java1.1.jar will runwith most Java JDKs that supply JDK 1.1.x functionality such as reflection and Exception handling. That includes many IBM J9 configurations, Symbian and Savaje.
db4o-8.0-core-java1.2.jar is built for all Java JDKs between 1.2 and 1.4.
db4o-8.0-core-java5.jar is built for Java JDK 5 and JDK 6
If you intend to use client/server version of db4o you will additionally need client/server librarymatching your JDK version:
db4o-8.0-cs-java1.1.jar db4o-8.0-cs-java1.2.jar db4o-8.0-cs-java5.jar
Some advanced functionality such as cluster support, platform-specific IO adapters, statistic tools etc can be added by including db4o optional library:
db4o-8.0-optional-java1.1.jar db4o-8.0-optional-java1.2.jar db4o-8.0-optional-java5.jar
You can also get all of the above in a single jar:db4o-8.0-all-java1.1.jar db4o-8.0-all-java1.2.jar db4o-8.0-all-java5.jar
www.db4o.com
1.2. Installation If you add one of the above db4o-*.jar files to your CLASSPATH db4o is installed. For beginners it is recommended to use "db4o-all" library to avoid confusion with the location of certain classes. In case you work with an integrated development environment like Eclipse you would copythe db4o-*.jar to the /lib/ folder under your project and add db4o to your project as a library.
1.3. Object Manager Enterprise installation Object Manager Enterprise (OME) is an object browser for db4o databases. OME installation can be found in /ome folder of the distribution. The zip file in this folder contains the Eclipse plugin version of OME. To install the plugin, you need to have a...
Leer documento completo
Regístrate para leer el documento completo.