Serializable generatedValue = session.getTransactionCoordinator().getTransaction().createIsolationDelegate().delegateWork( work, workInTransaction );
return generatedValue;
}
private IntegralDataTypeHolder doWorkInCurrentTransactionIfAny(SessionImplementor session) {
IdSourceKey key = getGeneratorKey( session );
Number nextValue = gridDialect.nextValue(
new NextValueRequest(
key,
optimizer.applyIncrementSizeToSourceValues() ? incrementSize : 1,