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

org.hibernate.id.Configurable Maven / Gradle / Ivy

There is a newer version: 6.6.2.Final
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;

import java.util.Properties;

import org.hibernate.MappingException;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.type.Type;

/**
 * An {@link IdentifierGenerator} that supports "configuration".
 *
 * @author Gavin King
 * @author Steve Ebersole
 */
public interface Configurable {
	/**
	 * Configure this instance, given the value of parameters
	 * specified by the user as {@code <param>} elements.
	 * This method is called just once, following instantiation.
	 *
	 * @param type The id property type descriptor
	 * @param params param values, keyed by parameter name
	 * @param serviceRegistry Access to service that may be needed.
	 */
	void configure(Type type, Properties params, ServiceRegistry serviceRegistry) throws MappingException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy