All pastes #158911 Raw Edit

Unnamed

public java v1 · immutable
·published 2006-09-02 13:25 UTC
rendered paste body
Sequence.class    public long getNext() throws SQLException {        synchronized(this) {            if(value >= valueWithMargin) {                valueWithMargin += BLOCK_INCREMENT;                flush();            }            long v = value;            value += increment;            return v;        }    }