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 Negative VOTE Issue 132: Incomplete specification of Sequence interface
Date Mon, 13 Feb 2006 21:22:15 GMT
Javadogs,

This dropped off the priority list. I propose for the JDO 2 release  
we add a note regarding user-defined sequences.

Please reply if you have any objections.

<spec>
The factory-class attribute names the user-defined class of the  
factory for the sequence. The class must have a static method  
newInstance() that returns an instance of Sequence. This method will  
be invoked once per named sequence per PersistenceManagerFactory and  
the same instance will be used for every reference to the same named  
sequence in the context of that PersistenceManagerFactory.
</spec>

<proposed>
The factory-class attribute names the user-defined class of the  
factory for the sequence. The class must have a static method  
newInstance() that returns an instance of Sequence. This method will  
be invoked once per named sequence per PersistenceManagerFactory and  
the same instance will be used for every reference to the same named  
sequence in the context of that PersistenceManagerFactory.

Note that there is no portable way for a user-defined sequence to  
implement the Sequence interface. In particular, the getName method  
might not return the name of the sequence, and the transactional  
behavior of the sequence as specified by the user in metadata might  
not be implemented. A future version of the specification might add a  
sequence factory spi to enable portable user-defined sequences.
</proposed>

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