synchronized (entityLock(ename)) { Long pkValueStart = getNextPkValueForEntityIncreaseBy(ename, 10, increaseBy()); long value = pkValueStart.longValue(); log.debug("filling pkCache for " + ename + ", starting at " + value); for (int i = increaseBy(); i-- > 0;) { s.push(new Long(i + value)); }
Long pkValueStart = getNextPkValueForEntityIncreaseBy(ename, 10, increaseBy()); long value = pkValueStart.longValue(); log.debug("filling pkCache for " + ename + ", starting at " + value); for (int i = increaseBy(); i-- > 1;) { s.push(new Long(i + value));
    private static void fillPkCache(Stack s, String ename) {        synchronized (entityLock(ename)) {            Long pkValueStart = getNextPkValueForEntityIncreaseBy(ename, 10, increaseBy());            long value = pkValueStart.longValue();            log.debug("filling pkCache for " + ename + ", starting at " + value);            for (int i = increaseBy(); i-- > 0;) {                s.push(new Long(i + value));            }        }    }