JPOX
JPOX
 Project  |  Ver 1.1  |  Ver 1.2  |  JDO  |  JPA  |  Guides  |  Tools
1.1 | Preparation | O/R Mapping | Runtime | Extensions | Developer
Development
Testing
JPOX Design : Extents
Introduction

This document presents in details the sequence of JPOX execution when the user application works with the Extent and Query JDO interfaces.

Flow of Events
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();
}