Package | Description |
---|---|
org.hibernate |
This package defines the central Hibernate APIs.
|
org.hibernate.context.spi |
SPI level contracts around "current session" support.
|
org.hibernate.engine.spi | |
org.hibernate.search |
Modifier and Type | Interface and Description |
---|---|
interface |
SharedSessionBuilder
Specialized
SessionBuilder with access to stuff from another session. |
Modifier and Type | Method and Description |
---|---|
SessionBuilder |
SessionBuilder.autoClose(boolean autoClose)
Deprecated.
Only integrations can specify autoClosing behavior of individual sessions. See
SessionOwner |
SessionBuilder |
SessionBuilder.autoJoinTransactions(boolean autoJoinTransactions)
Should the session built automatically join in any ongoing JTA transactions.
|
SessionBuilder |
SessionBuilder.clearEventListeners()
Remove all listeners intended for the built Session currently held here, including any auto-apply ones; in other
words, start with a clean slate.
|
SessionBuilder |
SessionBuilder.connection(Connection connection)
Adds a specific connection to the session options.
|
SessionBuilder |
SessionBuilder.connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
Use a specific connection release mode for these session options.
|
SessionBuilder |
SessionBuilder.eventListeners(SessionEventListener... listeners)
Apply one or more SessionEventListener instances to the listeners for the Session to be built.
|
SessionBuilder |
SessionBuilder.flushBeforeCompletion(boolean flushBeforeCompletion)
Should the session be automatically flushed during the "before completion" phase of transaction handling.
|
SessionBuilder |
SessionBuilder.interceptor(Interceptor interceptor)
Adds a specific interceptor to the session options.
|
SessionBuilder |
SessionBuilder.noInterceptor()
Signifies that no
Interceptor should be used. |
SessionBuilder |
SessionBuilder.statementInspector(StatementInspector statementInspector)
Applies a specific StatementInspector to the session options.
|
SessionBuilder |
SessionBuilder.tenantIdentifier(String tenantIdentifier)
Define the tenant identifier to be associated with the opened session.
|
SessionBuilder |
SessionFactory.withOptions()
Obtain a
Session builder. |
Modifier and Type | Method and Description |
---|---|
protected SessionBuilder |
AbstractCurrentSessionContext.baseSessionBuilder() |
Modifier and Type | Interface and Description |
---|---|
interface |
SessionBuilderImplementor
Defines the internal contract between the SessionBuilder and other parts of
Hibernate..
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractDelegatingSessionBuilder
Base class for
SessionBuilder implementations that wish to implement only parts of that contract themselves
while forwarding other method invocations to a delegate instance. |
class |
AbstractDelegatingSessionBuilderImplementor
Base class for
SessionBuilderImplementor implementations that wish to implement only parts of that contract
themselves while forwarding other method invocations to a delegate instance. |
class |
AbstractDelegatingSharedSessionBuilder
Base class for
SharedSessionBuilder implementations that wish to implement only parts of that contract
themselves while forwarding other method invocations to a delegate instance. |
Modifier and Type | Method and Description |
---|---|
SessionBuilder |
AbstractDelegatingSessionBuilder.autoClose(boolean autoClose) |
SessionBuilder |
AbstractDelegatingSessionBuilder.autoJoinTransactions(boolean autoJoinTransactions) |
SessionBuilder |
AbstractDelegatingSharedSessionBuilder.clearEventListeners() |
SessionBuilder |
AbstractDelegatingSessionBuilder.clearEventListeners() |
SessionBuilder |
AbstractDelegatingSessionBuilder.connection(Connection connection) |
SessionBuilder |
AbstractDelegatingSessionBuilder.connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode) |
SessionBuilder |
AbstractDelegatingSharedSessionBuilder.eventListeners(SessionEventListener... listeners) |
SessionBuilder |
AbstractDelegatingSessionBuilder.eventListeners(SessionEventListener... listeners) |
SessionBuilder |
AbstractDelegatingSessionBuilder.flushBeforeCompletion(boolean flushBeforeCompletion) |
SessionBuilder |
AbstractDelegatingSessionBuilder.interceptor(Interceptor interceptor) |
SessionBuilder |
AbstractDelegatingSessionBuilder.noInterceptor() |
SessionBuilder |
SessionBuilderImplementor.owner(SessionOwner sessionOwner)
Adds the session owner to the session options
|
SessionBuilder |
AbstractDelegatingSessionBuilderImplementor.owner(SessionOwner sessionOwner) |
SessionBuilder |
AbstractDelegatingSharedSessionBuilder.statementInspector(StatementInspector statementInspector) |
SessionBuilder |
AbstractDelegatingSessionBuilder.statementInspector(StatementInspector statementInspector) |
SessionBuilder |
AbstractDelegatingSharedSessionBuilder.tenantIdentifier(String tenantIdentifier) |
SessionBuilder |
AbstractDelegatingSessionBuilder.tenantIdentifier(String tenantIdentifier) |
Constructor and Description |
---|
AbstractDelegatingSessionBuilder(SessionBuilder delegate) |
Modifier and Type | Interface and Description |
---|---|
interface |
FullTextSharedSessionBuilder |
Copyright © 2017 JBoss by Red Hat. All rights reserved.