db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg von Frantzius <joerg.von.frantz...@artnology.com>
Subject Re: Optimistic tests in TCK20?
Date Fri, 03 Mar 2006 11:25:39 GMT
Thanks! Sorry for asking!
(Why the heck didn't I see it...)

Craig L Russell schrieb:
> Hi Jörg,
>
> Craig
>
> [d-usca14-133-119:jdo/trunk/tck20] clr% grep 
> JDOOptimisticVerificationException `find src/java -name "*.java"`
> src/java/org/apache/jdo/tck/api/persistencemanager/OptimisticFailure.java:import 
> javax.jdo.JDOOptimisticVerificationException;
> src/java/org/apache/jdo/tck/api/persistencemanager/OptimisticFailure.java: 
> * If any instance fails the verification, a 
> JDOOptimisticVerificationException
> src/java/org/apache/jdo/tck/api/persistencemanager/OptimisticFailure.java: 
> * is thrown which contains an array of 
> JDOOptimisticVerificationException,
> src/java/org/apache/jdo/tck/api/persistencemanager/OptimisticFailure.java:          

> catch (JDOOptimisticVerificationException ex) {
> src/java/org/apache/jdo/tck/api/persistencemanager/OptimisticFailure.java:          
        
> if (t instanceof JDOOptimisticVerificationException) {
>
>     private VersionedPCPoint p1 = new VersionedPCPoint(1,1); // this 
> will be updated in tx1, updated in tx2, verified in tx3
>     private VersionedPCPoint p2 = new VersionedPCPoint(2,2); // this 
> will be updated in tx1, deleted in tx2, verified in tx3
>     private VersionedPCPoint p3 = new VersionedPCPoint(3,3); // this 
> will be deleted in tx1, updated in tx2
>     private VersionedPCPoint p4 = new VersionedPCPoint(4,4); // this 
> will be deleted in tx1, deleted in tx2
>     private VersionedPCPoint p5 = new VersionedPCPoint(5,5); // this 
> will be unchanged in tx1, updated in tx2, verified in tx3
>
> On Mar 2, 2006, at 11:53 AM, Jörg von Frantzius wrote:
>
>> JDOOptimisticVerificationException
>
> 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!
>


Mime
View raw message