| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: this, for method chainingWhether the Session should be automatically cleared autoClear)Should the session be automatically cleared on a failed transaction? |
| public T | Returns: this, for method chainingShould the session be automatically closed autoClose)
Deprecated
Only integrations can specify autoClosing behavior of individual sessions. See
Should the session be automatically closed after transaction completion?
org.
|
| public T | Returns: this, for method chainingShould JTA transactions be automatically joined autoJoinTransactions)Should the session built automatically join in any ongoing JTA transactions. |
| public T | 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. |
| public T | Returns: this, for method chainingThe connection to use. connection)Adds a specific connection to the session options. |
| public T | Returns: this, for method chainingThe connection handling mode to use. mode)Signifies that the connection release mode from the original session should be used to create the new session. |
| public T | Returns: this, for method chainingThe connection release mode to use. connectionReleaseMode)
Deprecated
(since 5.2) use
Use a specific connection release mode for these session options.
connectionHandlingMode instead
|
| public T | Returns: this, for method chainingThe listeners to incorporate into the built Session listeners)Apply one or more SessionEventListener instances to the listeners for the Session to be built. |
| public default T | Returns: this, for method chainingShould the session be automatically flushed flushBeforeCompletion)
Deprecated
(since 5.2) use
Should the session be automatically flushed during the "before completion" phase of transaction handling.
flushMode(FlushMode) instead.
|
| public T | |
| public T | Returns: this, for method chainingThe interceptor to use. interceptor)Adds a specific interceptor to the session options. |
| public T | |
| public T | |
| public Session | Returns: The session
Deprecated
as a consequence of
Opens a session with the specified options.
Session being deprecated.
|
| public default T | Returns: this, for method chainingtrue indicates the validation should be performed, false otherwise
The default value is Should |
| public T | Returns: this, for method chainingThe StatementInspector to use. statementInspector)Applies a specific StatementInspector to the session options. |
| public T | Returns: this, for method chainingThe tenant identifier. tenantIdentifier)Define the tenant identifier to be associated with the opened session. |
| autoClear | back to summary |
|---|---|
| public T autoClear(boolean autoClear) Should the session be automatically cleared on a failed transaction?
| |
| autoClose | back to summary |
|---|---|
| public T autoClose(boolean autoClose)
Deprecated Only integrations can specify autoClosing behavior of individual sessions. See
Should the session be automatically closed after transaction completion?
| |
| autoJoinTransactions | back to summary |
|---|---|
| public T autoJoinTransactions(boolean autoJoinTransactions) Should the session built automatically join in any ongoing JTA transactions.
| |
| clearEventListeners | back to summary |
|---|---|
| public T 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.
| |
| connection | back to summary |
|---|---|
| public T connection(Connection connection) Adds a specific connection to the session options.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public T connectionHandlingMode(PhysicalConnectionHandlingMode mode) Signifies that the connection release mode from the original session should be used to create the new session.
| |
| connectionReleaseMode | back to summary |
|---|---|
| public T connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
Deprecated (since 5.2) use Use a specific connection release mode for these session options.
| |
| eventListeners | back to summary |
|---|---|
| public T eventListeners(SessionEventListener... listeners) Apply one or more SessionEventListener instances to the listeners for the Session to be built.
| |
| flushBeforeCompletion | back to summary |
|---|---|
| public default T flushBeforeCompletion(boolean flushBeforeCompletion)
Deprecated (since 5.2) use Should the session be automatically flushed during the "before completion" phase of transaction handling.
| |
| flushMode | back to summary |
|---|---|
| public T flushMode(FlushMode flushMode) Specify the initial FlushMode to use for the opened Session
| |
| interceptor | back to summary |
|---|---|
| public T interceptor(Interceptor interceptor) Adds a specific interceptor to the session options.
| |
| jdbcTimeZone | back to summary |
|---|---|
| public T jdbcTimeZone(TimeZone timeZone) | |
| noInterceptor | back to summary |
|---|---|
| public T noInterceptor() Signifies that no
By default the
Calling
| |
| openSession | back to summary |
|---|---|
| public Session openSession()
Deprecated as a consequence of Opens a session with the specified options.
| |
| setQueryParameterValidation | back to summary |
|---|---|
| public default T setQueryParameterValidation(boolean enabled) Should
| |
| statementInspector | back to summary |
|---|---|
| public T statementInspector(StatementInspector statementInspector) Applies a specific StatementInspector to the session options.
| |
| tenantIdentifier | back to summary |
|---|---|
| public T tenantIdentifier(String tenantIdentifier) Define the tenant identifier to be associated with the opened session.
| |