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

org.hibernate.boot.spi.AbstractDelegatingSessionFactoryBuilderImplementor 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.boot.spi;

/**
 * Convenience base class for custom implementors of {@link SessionFactoryBuilderImplementor}, using delegation
 *
 * @author Guillaume Smet
 * @param  The type of a specific sub-class; Allows sub-classes to narrow down the return-type of the contract methods
 * to a specialization of {@link SessionFactoryBuilderImplementor}
 */
public abstract class AbstractDelegatingSessionFactoryBuilderImplementor
		extends AbstractDelegatingSessionFactoryBuilder implements SessionFactoryBuilderImplementor {

	public AbstractDelegatingSessionFactoryBuilderImplementor(SessionFactoryBuilderImplementor delegate) {
		super( delegate );
	}

	@Override
	protected SessionFactoryBuilderImplementor delegate() {
		return (SessionFactoryBuilderImplementor) super.delegate();
	}

	@SuppressWarnings("deprecation")
	@Override
	public void markAsJpaBootstrap() {
		delegate().markAsJpaBootstrap();
	}

	@Override
	public void disableJtaTransactionAccess() {
		delegate().disableJtaTransactionAccess();
	}

	@Override
	public void enableJdbcStyleParamsZeroBased() {
		delegate().enableJdbcStyleParamsZeroBased();
	}

	@Override
	public SessionFactoryOptions buildSessionFactoryOptions() {
		return delegate().buildSessionFactoryOptions();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy