SessionBuilder with access to stuff from another session.
| Modifier and Type | Method and Description |
|---|---|
| public T | Returns: this, for method chainingSignifies that the autoClose flag from the original session should be used to create the new session. |
| public T | autoClose(boolean
Should the session be automatically closed autoClose)Redeclares org. |
| public T | Returns: this, for method chainingSignifies that the autoJoinTransaction flag from the original session should be used to create the new session. |
| public T | autoJoinTransactions(boolean
Should JTA transactions be automatically joined autoJoinTransactions)Redeclares org. |
| public T | Returns: this, for method chainingSignifies that the connection from the original session should be used to create the new session. |
| public T | connection(Connection
The connection to use. connection)Redeclares org. |
| public T | Returns: this, for method chainingSignifies that the connection release mode from the original session should be used to create the new session. |
| public T | Returns: this, for method chaining
Deprecated
(snce 6.0) use
Signifies that the connection release mode from the original session should be used to create the new session.
connectionHandlingMode instead.
|
| public T | connectionReleaseMode(ConnectionReleaseMode
The connection release mode to use. connectionReleaseMode)Redeclares org. |
| public default T | Returns: this, for method chaining
Deprecated
(since 5.2) use
Signifies that the flushBeforeCompletion flag from the original session should be used to create the new session.
flushMode() instead.
|
| public default T | flushBeforeCompletion(boolean
Should the session be automatically flushed flushBeforeCompletion)Overrides default org. |
| public T | Returns: this, for method chainingSignifies that the FlushMode from the original session should be used to create the new session. |
| public T | Returns: this, for method chainingSignifies the interceptor from the original session should be used to create the new session. |
| public T | interceptor(Interceptor
The interceptor to use. interceptor)Redeclares org. |
| public T | noInterceptor()
Redeclares org. Interceptor should be used.
|
| public default T | Returns: this, for method chaining
Deprecated
Use
Signifies that the transaction context from the original session should be used to create the new session.
connection() instead
|
| autoClose | back to summary |
|---|---|
| public T autoClose() Signifies that the autoClose flag from the original session should be used to create the new session.
| |
| autoClose | back to summary |
|---|---|
| public T autoClose(boolean autoClose) Redeclares org. Doc from org. Should the session be automatically closed after transaction completion?
| |
| autoJoinTransactions | back to summary |
|---|---|
| public T autoJoinTransactions() Signifies that the autoJoinTransaction flag from the original session should be used to create the new session.
| |
| autoJoinTransactions | back to summary |
|---|---|
| public T autoJoinTransactions(boolean autoJoinTransactions) Redeclares org. Doc from org. Should the session built automatically join in any ongoing JTA transactions.
| |
| connection | back to summary |
|---|---|
| public T connection() Signifies that the connection from the original session should be used to create the new session.
| |
| connection | back to summary |
|---|---|
| public T connection(Connection connection) Redeclares org. Doc from org. Adds a specific connection to the session options.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public T connectionHandlingMode() 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()
Deprecated (snce 6.0) use 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) Redeclares org. Doc from org. Use a specific connection release mode for these session options.
| |
| flushBeforeCompletion | back to summary |
|---|---|
| public default T flushBeforeCompletion()
Deprecated (since 5.2) use Signifies that the flushBeforeCompletion flag from the original session should be used to create the new session.
| |
| flushBeforeCompletion | back to summary |
|---|---|
| public default T flushBeforeCompletion(boolean flushBeforeCompletion) Overrides default org. Doc from org. Should the session be automatically flushed during the "before completion" phase of transaction handling.
| |
| flushMode | back to summary |
|---|---|
| public T flushMode() Signifies that the FlushMode from the original session should be used to create the new session.
| |
| interceptor | back to summary |
|---|---|
| public T interceptor() Signifies the interceptor from the original session should be used to create the new session.
| |
| interceptor | back to summary |
|---|---|
| public T interceptor(Interceptor interceptor) Redeclares org. Doc from org. Adds a specific interceptor to the session options.
| |
| noInterceptor | back to summary |
|---|---|
| public T noInterceptor() Redeclares org. Doc from org. Signifies that no
By default the
Calling
| |
| transactionContext | back to summary |
|---|---|
| public default T transactionContext()
Deprecated Use Signifies that the transaction context from the original session should be used to create the new session.
| |