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.store.ObjectProvider prepareDB4OObjectForUse(java.lang.Object obj, org.datanucleus.store.ExecutionContext ec, com.db4o.ObjectContainer cont, org.datanucleus.metadata.AbstractClassMetaData cmd, DB4OStoreManager storeMgr)
          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.store.ObjectProvider prepareDB4OObjectForUse(java.lang.Object obj,
                                                                           org.datanucleus.store.ExecutionContext ec,
                                                                           com.db4o.ObjectContainer cont,
                                                                           org.datanucleus.metadata.AbstractClassMetaData cmd,
                                                                           DB4OStoreManager storeMgr)
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)
ec - execution context
cont - ObjectContainer that returned the object
cmd - ClassMetaData for the object
storeMgr - DB4OStoreManager
Returns:
The StateManager for this object


Copyright © 2012. All Rights Reserved.