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 Issue 132: Factory Sequences
Date Mon, 19 Sep 2005 18:10:05 GMT

The spec doesn't provide enough information for factory  
implementations of Sequence. Specifically:
1. The factory method newInstance has no parameters, so it's  
impossible to tell it what its name is and what its strategy is.
2. There is no support in JDOImplHelper for the factory Sequence to  
get information needed. The Sequence doesn't know which PMF is being  
used, and therefore what DataSource to use.
3. There is not even a way to give the Sequence the extensions that  
might be defined on the metdata sequence element.
4. There's no support for transactional sequences. A sequence needs  
to know the context in which it is called in order to know whether to  
make transactional or non-transactional calls to the underlying  
DataSource. It cannot determine whether it needs to block.



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