Package org.hibernate.engine.spi
Class AbstractDelegatingSessionBuilderImplementor<T extends SessionBuilderImplementor>
- java.lang.Object
-
- org.hibernate.engine.spi.AbstractDelegatingSessionBuilder<T>
-
- org.hibernate.engine.spi.AbstractDelegatingSessionBuilderImplementor<T>
-
- All Implemented Interfaces:
SessionBuilderImplementor<T>
,SessionBuilder<T>
public abstract class AbstractDelegatingSessionBuilderImplementor<T extends SessionBuilderImplementor> extends AbstractDelegatingSessionBuilder<T> implements SessionBuilderImplementor<T>
Base class forSessionBuilderImplementor
implementations that wish to implement only parts of that contract themselves while forwarding other method invocations to a delegate instance.
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingSessionBuilderImplementor(SessionBuilderImplementor delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SessionBuilderImplementor
delegate()
T
owner(SessionOwner sessionOwner)
Adds the session owner to the session options-
Methods inherited from class org.hibernate.engine.spi.AbstractDelegatingSessionBuilder
autoClear, autoClose, autoJoinTransactions, clearEventListeners, connection, connectionHandlingMode, connectionReleaseMode, eventListeners, flushBeforeCompletion, flushMode, getThis, interceptor, jdbcTimeZone, noInterceptor, openSession, setQueryParameterValidation, statementInspector, tenantIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.SessionBuilder
autoClear, autoClose, autoJoinTransactions, clearEventListeners, connection, connectionHandlingMode, connectionReleaseMode, eventListeners, flushBeforeCompletion, flushMode, interceptor, jdbcTimeZone, noInterceptor, openSession, setQueryParameterValidation, statementInspector, tenantIdentifier
-
-
-
-
Constructor Detail
-
AbstractDelegatingSessionBuilderImplementor
public AbstractDelegatingSessionBuilderImplementor(SessionBuilderImplementor delegate)
-
-
Method Detail
-
delegate
protected SessionBuilderImplementor delegate()
- Overrides:
delegate
in classAbstractDelegatingSessionBuilder<T extends SessionBuilderImplementor>
-
owner
public T owner(SessionOwner sessionOwner)
Description copied from interface:SessionBuilderImplementor
Adds the session owner to the session options- Specified by:
owner
in interfaceSessionBuilderImplementor<T extends SessionBuilderImplementor>
- Parameters:
sessionOwner
- The session owner.- Returns:
this
, for method chaining
-
-