You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Oliver Zeigermann <oz...@c1-fse.de> on 2004/04/29 13:31:43 UTC
Porposal: Sequence Support
In bug report
http://issues.apache.org/bugzilla/show_bug.cgi?id=26913
the need for a non-transactional counter aka sequence is claimed. As all
relational databases more or less have features that would allow for
such a concept want propose a new interface for Slide 2.1 that stores
might implement to pass sequenced number to Slide:
public interface SequenceStore {
public boolean isSupported(); // necessary to do dynamic checking
public void createSequence(String sequenceName);
public long next(String sequenceName);
}
A store supports sequences when it implements this interface and
isSupported() returns true. This double checking allows the store to
dynamically check if the physical persistent store (e.g. RDBMS etc.)
really supports it by doing a request.
Comments and opinions, please!
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org