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