SharedSessionBuilder implementations that wish to implement only parts of that contract
themselves while forwarding other method invocations to a delegate instance.
| Modifier and Type | Field and Description |
|---|---|
| private final SharedSessionBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public SharedSessionBuilder | autoClear(boolean
Whether the Session should be automatically cleared autoClear)Implements org. |
| public SharedSessionBuilder | autoClose()
Implements org. |
| public SharedSessionBuilder | autoClose(boolean
Should the session be automatically closed autoClose)Implements org. |
| public SharedSessionBuilder | autoJoinTransactions()
Implements org. |
| public SharedSessionBuilder | autoJoinTransactions(boolean
Should JTA transactions be automatically joined autoJoinTransactions)Implements org. |
| public SharedSessionBuilder | clearEventListeners()
Implements org. |
| public SharedSessionBuilder | connection()
Implements org. |
| public SharedSessionBuilder | connection(Connection
The connection to use. connection)Implements org. |
| public SharedSessionBuilder | connectionHandlingMode()
Implements org. |
| public SharedSessionBuilder | connectionHandlingMode(PhysicalConnectionHandlingMode
The connection handling mode to use. mode)Implements org. |
| public SharedSessionBuilder | connectionReleaseMode()
Implements org.
Deprecated
since 6.0.
Signifies that the connection release mode from the original session should be used to create the new session.
|
| public SharedSessionBuilder | |
| public SharedSessionBuilder | eventListeners(SessionEventListener...
The listeners to incorporate into the built Session listeners)Implements org. SessionEventListener instances to the list of
listeners for the new session to be built.
|
| public SharedSessionBuilder | flushMode(FlushMode
The initial FlushMode to use for the opened Session flushMode)Implements org. |
| public SharedSessionBuilder | flushMode()
Implements org. |
| protected SharedSessionBuilder | |
| public SharedSessionBuilder | interceptor()
Implements org. |
| public SharedSessionBuilder | interceptor(Interceptor
The interceptor to use. interceptor)Implements org. |
| public SharedSessionBuilder | |
| public SharedSessionBuilder | noInterceptor()
Implements org. Interceptor should be used.
|
| public Session | openSession()
Implements org. |
| public SharedSessionBuilder | statementInspector(StatementInspector
The StatementInspector to use. statementInspector)Implements org. StatementInspector to the session.
|
| public SharedSessionBuilder | tenantIdentifier(String
The tenant identifier. tenantIdentifier)Implements org. |
| public SharedSessionBuilder | tenantIdentifier(Object
The tenant identifier. tenantIdentifier)Implements org. |
| delegate | back to summary |
|---|---|
| private final SharedSessionBuilder delegate | |
| AbstractDelegatingSharedSessionBuilder | back to summary |
|---|---|
| public AbstractDelegatingSharedSessionBuilder(SharedSessionBuilder delegate) | |
| autoClear | back to summary |
|---|---|
| public SharedSessionBuilder autoClear(boolean autoClear) Implements org. Doc from org. Should the session be automatically cleared on a failed transaction?
| |
| autoClose | back to summary |
|---|---|
| public SharedSessionBuilder autoClose() Implements org. Doc from org. Signifies that the autoClose flag from the original session should be used to create the new session.
| |
| autoClose | back to summary |
|---|---|
| public SharedSessionBuilder autoClose(boolean autoClose) Implements org. Doc from org. Should the session be automatically closed after transaction completion?
| |
| autoJoinTransactions | back to summary |
|---|---|
| public SharedSessionBuilder autoJoinTransactions() Implements org. Doc from org. Signifies that the autoJoinTransaction flag from the original session should be used to create the new session.
| |
| autoJoinTransactions | back to summary |
|---|---|
| public SharedSessionBuilder autoJoinTransactions(boolean autoJoinTransactions) Implements org. Doc from org. Should the session built automatically join in any ongoing JTA transactions.
| |
| clearEventListeners | back to summary |
|---|---|
| public SharedSessionBuilder clearEventListeners() Implements org. Doc from org. Remove all listeners intended for the built session currently held here, including any auto-apply ones; in other words, start with a clean slate.
| |
| connection | back to summary |
|---|---|
| public SharedSessionBuilder connection() Implements org. Doc from org. Signifies that the connection from the original session should be used to create the new session.
| |
| connection | back to summary |
|---|---|
| public SharedSessionBuilder connection(Connection connection) Implements org. Doc from org. Adds a specific connection to the session options.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public SharedSessionBuilder connectionHandlingMode() Implements org. Doc from org. Signifies that the connection release mode from the original session should be used to create the new session.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public SharedSessionBuilder connectionHandlingMode(PhysicalConnectionHandlingMode mode) Implements org. Doc from org. Signifies that the connection release mode from the original session should be used to create the new session.
| |
| connectionReleaseMode | back to summary |
|---|---|
| public SharedSessionBuilder connectionReleaseMode() Implements org. Doc from org. Deprecated since 6.0. Signifies that the connection release mode from the original session should be used to create the new session.
| |
| delegate | back to summary |
|---|---|
| public SharedSessionBuilder delegate() | |
| eventListeners | back to summary |
|---|---|
| public SharedSessionBuilder eventListeners(SessionEventListener... listeners) Implements org. Doc from org. Add one or more
| |
| flushMode | back to summary |
|---|---|
| public SharedSessionBuilder flushMode(FlushMode flushMode) Implements org. Doc from org. Specify the initial FlushMode to use for the opened Session
| |
| flushMode | back to summary |
|---|---|
| public SharedSessionBuilder flushMode() Implements org. Doc from org. Signifies that the FlushMode from the original session should be used to create the new session.
| |
| getThis | back to summary |
|---|---|
| protected SharedSessionBuilder getThis() | |
| interceptor | back to summary |
|---|---|
| public SharedSessionBuilder interceptor() Implements org. Doc from org. Signifies the interceptor from the original session should be used to create the new session.
| |
| interceptor | back to summary |
|---|---|
| public SharedSessionBuilder interceptor(Interceptor interceptor) Implements org. Doc from org. Adds a specific interceptor to the session options.
| |
| jdbcTimeZone | back to summary |
|---|---|
| public SharedSessionBuilder jdbcTimeZone(TimeZone timeZone) Implements org.
| |
| noInterceptor | back to summary |
|---|---|
| public SharedSessionBuilder noInterceptor() Implements org. Doc from org. Signifies that no
By default, if no
Calling
| |
| openSession | back to summary |
|---|---|
| public Session openSession() Implements org. Doc from org. Opens a session with the specified options. | |
| statementInspector | back to summary |
|---|---|
| public SharedSessionBuilder statementInspector(StatementInspector statementInspector) Implements org. Doc from org. Applies the given
| |
| tenantIdentifier | back to summary |
|---|---|
| public SharedSessionBuilder tenantIdentifier(String tenantIdentifier) Implements org. Doc from org. Define the tenant identifier to be associated with the opened session.
| |
| tenantIdentifier | back to summary |
|---|---|
| public SharedSessionBuilder tenantIdentifier(Object tenantIdentifier) Implements org. Doc from org. Define the tenant identifier to be associated with the opened session.
| |