db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Optimistic tests in TCK20?
Date Fri, 03 Mar 2006 00:28:16 GMT
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