org.datanucleus.store.db4o
Class DB4OUtils

java.lang.Object
  extended by org.datanucleus.store.db4o.DB4OUtils

public class DB4OUtils
extends java.lang.Object

Utilities for DB4O (http://www.db4o.com).


Constructor Summary
DB4OUtils()
           
 
Method Summary
static org.datanucleus.StateManager prepareDB4OObjectForUse(java.lang.Object obj, org.datanucleus.ObjectManager om, com.db4o.ObjectContainer cont, org.datanucleus.metadata.AbstractClassMetaData cmd, DB4OStoreManager mgr)
          Convenience method to take an object returned by DB4O (from a query for example), and prepare it for passing to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DB4OUtils

public DB4OUtils()
Method Detail

prepareDB4OObjectForUse

public static org.datanucleus.StateManager prepareDB4OObjectForUse(java.lang.Object obj,
                                                                   org.datanucleus.ObjectManager om,
                                                                   com.db4o.ObjectContainer cont,
                                                                   org.datanucleus.metadata.AbstractClassMetaData cmd,
                                                                   DB4OStoreManager mgr)
Convenience method to take an object returned by DB4O (from a query for example), and prepare it for passing to the user. Makes sure there is a StateManager connected, with associated fields marked as loaded.

Parameters:
obj - The object (from DB4O)
om - ObjectManager
cont - ObjectContainer that returned the object
cmd - ClassMetaData for the object
mgr - DB4OManager
Returns:
The StateManager for this object


Copyright © 2010. All Rights Reserved.