Package org.hibernate.id.enhanced
Interface InitialValueAwareOptimizer
- All Known Implementing Classes:
PooledOptimizer
public interface InitialValueAwareOptimizer
Marker interface for optimizer which wishes to know the user-specified initial value.
Used instead of constructor injection since that is already a public understanding and because not all optimizers care.
-
Method Summary
Modifier and TypeMethodDescriptionvoidinjectInitialValue(long initialValue) Reports the user specified initial value to the optimizer.
-
Method Details
-
injectInitialValue
void injectInitialValue(long initialValue) Reports the user specified initial value to the optimizer.-1is used to indicate that the user did not specify.- Parameters:
initialValue- The initial value specified by the user, or-1to indicate that the user did not specify an initial value.
-