IsActive

ExtObjectContainer.isActive method provides you with means to define if the object is active.

UtilityExample.java: checkActive
01public static void checkActive(){ 02 storeSensorPanel(); 03 ObjectContainer db = Db4o.openFile(Util.YAPFILENAME); 04 try { 05 db.ext().configure().activationDepth(2); 06 System.out.println("Object container activation depth = 2"); 07 ObjectSet result = db.get(new SensorPanel(1)); 08 SensorPanel sensor = (SensorPanel)result.get(0); 09 SensorPanel next = sensor.next; 10 while (next != null){ 11 System.out.println("Object " + next +" is active: " + db.ext().isActive(next)); 12 next = next.next; 13 } 14 } finally { 15 db.close(); 16 } 17 }

This method can be useful in applications with deep object hierarchy if you prefer to use manual activation.