org.hibernate.id.enhanced.InitialValueAwareOptimizer Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of hibernate-core Show documentation
                Show all versions of hibernate-core Show documentation
The core O/RM functionality as provided by Hibernate
                
             The newest version!
        
        /*
 * 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 wish 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