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 |
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.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 | Method and Description |
---|---|
SessionBuilder |
SessionBuilderImplementor.owner(SessionOwner sessionOwner)
Adds the session owner to the session options
|
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.