You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Craig L Russell <Cr...@Sun.COM> on 2006/02/13 22:22:15 UTC
Negative VOTE Issue 132: Incomplete specification of Sequence interface
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!