db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Cleaning up the datastore in tearDown
Date Tue, 09 Aug 2005 21:51:41 GMT

I'm thinking a better way of cleaning up might be:

Extent toBeDeleted = pm.getExtent(parameterClass, false);
Query toBeDelete = pm.newQuery(parameterClass, toBeDeleted);

This doesn't require that the query be executed except for the  
purposes of calling the jdoPreDelete callback, which is not an issue  
in the TCK.

Does JPOX support this? Would it help (I'm thinking of the issue with  
CompletenessTest not cleaning up because of issues with loading the  


Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!

View raw message