private static Optimizer buildFallbackOptimizer(Class returnClass, int incrementSize) { return new NoopOptimizer( returnClass, incrementSize ); }
@Override public boolean applyIncrementSizeToSourceValues() { // We allow the increment size to be 0 for backward-compatibility with legacy // ID generators; we don't apply a value of 0, so the default will be used instead. // We don't apply an increment size of 1, since it is already the default. return getIncrementSize() != 0 && getIncrementSize() != 1; } }
@Override public boolean applyIncrementSizeToSourceValues() { // We allow the increment size to be 0 for backward-compatibility with legacy // ID generators; we don't apply a value of 0, so the default will be used instead. // We don't apply an increment size of 1, since it is already the default. return getIncrementSize() != 0 && getIncrementSize() != 1; } }
private static Optimizer buildFallbackOptimizer(Class returnClass, int incrementSize) { return new NoopOptimizer( returnClass, incrementSize ); }