org.hibernate.id.enhanced.InitialValueAwareOptimizer Maven / Gradle / Ivy
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate.id.enhanced;
/**
* 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.
*
* @author Steve Ebersole
*/
public interface InitialValueAwareOptimizer {
/**
* Reports the user specified initial value to the optimizer.
*
* -1 is used to indicate that the user did not specify.
*
* @param initialValue The initial value specified by the user, or -1 to indicate that the
* user did not specify.
*/
public void injectInitialValue(long initialValue);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy