| Hi Andy, I'm reading the description of the three strategies again and I can't figure it out. I think I understand nontransactional and contiguous, but don't understand noncontiguous. Obtaining a sequence number within the transaction implies an update of the sequence so that no other transaction gets the same number. This sounds like exclusive use of the sequence is required. I agree with you that a no-args construction static method newInstance is not sufficient to the task. I think we need a newInstance method that at least supplies the name and strategy. So I'd propose newInstance(String name, String strategy). The reason for String strategy is that the xml is not exhaustive. It just provides values that are "standard". The xml and the text are in conflict. The text says "The strategy attribute specifies the strategy for generating sequence numbers. Standard values are...". This implies that the strategy is not restricted to these three. But the xml says <!ATTLIST sequence strategy (nontransactional|contiguous|noncontiguous) #REQUIRED> which implies that only these three can be used. I also don't know how the factory implementation can implement the different strategies without some help from the JDOImplHelper. I suspect that there is some design work needed here. Other experts, Any insights here? Craig On Sep 15, 2005, at 1:12 AM, Andy Jefferson wrote:
Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PROTECTED] P.S. A good JDO? O, Gasp! |
smime.p7s
Description: S/MIME cryptographic signature
