This document presents in details the sequence of JPOX execution when the user application works with the Extent and Query JDO interfaces.
Extent myExtent = pm.getExtent(MyClass.class,true);
Query query = pm.newQuery(extent);
Collection collection = (Collection)q.execute();
Iterator iterator = collection .iterator();
if (iterator.hasNext())
{
Object myObject = iterator.next();
}
![]() |