IsActive

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

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

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