![]() | ![]() |
![]() |
| Project | Ver 1.1 | Ver 1.2 | JDO | JPA | Guides | Tools |
| 1.1 | Preparation | O/R Mapping | Runtime | Extensions | Developer |
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();
}
![]() |