All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.id.enhanced.InitialValueAwareOptimizer Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show 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 - 2024 Weber Informatics LLC | Privacy Policy