Keld Laursen [eMVP] wrote:
> > A trial version of our current 2.8 release is available for
> > download from our website:
> > http://www.db4o.com
>
> And it is easy to transfer data to/from a host system as well?
Yes.
You can run a local db4o session on the CF device and connect
to a db4o server on the network.
Objects can be moved and copied between db4o ObjectContainers
and they can bound to other database identities.
Here is a small code sample how you would copy all Employee
objects (and all attached objects) from a server to a local
database on the client:
ObjectContainer localContainer =
Db4o.openFile("local.yap");
ObjectContainer serverContainer =
Db4o.openClient(HOSTNAME, PORT, USER, PASS);
Query q = serverContainer.query();
q.constrain(typeof(Employee));
ObjectSet objectSet = q.execute();
while(objectSet.hasNext()){
localContainer.set(objectSet.next());
}
localContainer.commit();
localContainer.close();
serverContainer.close();
Kind regards,
Carl
--
Carl Rosenberger
db4o - database for objects -
http://www.db4o.com