org.hibernate.boot.spi.AbstractDelegatingSessionFactoryBuilderImplementor 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
Hibernate's core ORM functionality
/*
* 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();
}
@Override
public void disableJtaTransactionAccess() {
delegate().disableJtaTransactionAccess();
}
@Override
public void enableJdbcStyleParamsZeroBased() {
delegate().enableJdbcStyleParamsZeroBased();
}
@Override
public SessionFactoryOptions buildSessionFactoryOptions() {
return delegate().buildSessionFactoryOptions();
}
}