SessionBuilder 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 SessionBuilder |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public T | autoClear(boolean
Whether the Session should be automatically cleared autoClear)Implements org. |
| public T | autoClose(boolean
Should the session be automatically closed autoClose)Implements org. |
| public T | autoJoinTransactions(boolean
Should JTA transactions be automatically joined autoJoinTransactions)Implements org. |
| public T | clearEventListeners()
Implements org. |
| public T | connection(Connection
The connection to use. connection)Implements org. |
| public T | connectionHandlingMode(PhysicalConnectionHandlingMode
The connection handling mode to use. mode)Implements org. |
| public T | connectionReleaseMode(ConnectionReleaseMode
The connection release mode to use. connectionReleaseMode)Implements org. |
| protected SessionBuilder | |
| public T | eventListeners(SessionEventListener...
The listeners to incorporate into the built Session listeners)Implements org. |
| public T | flushBeforeCompletion(boolean
Should the session be automatically flushed flushBeforeCompletion)Overrides default org. |
| public T | flushMode(FlushMode
The initial FlushMode to use for the opened Session flushMode)Implements org. |
| protected T | |
| public T | interceptor(Interceptor
The interceptor to use. interceptor)Implements org. |
| public T | |
| public T | noInterceptor()
Implements org. Interceptor should be used.
|
| public Session | openSession()
Implements org.
Deprecated
as a consequence of
Opens a session with the specified options.
Session being deprecated.
|
| public T | setQueryParameterValidation(boolean
true indicates the validation should be performed, false otherwise
The default value is Overrides default org. org. perform parameter validation
when the Session is bootstrapped via JPA javax.
|
| public T | statementInspector(StatementInspector
The StatementInspector to use. statementInspector)Implements org. |
| public T | tenantIdentifier(String
The tenant identifier. tenantIdentifier)Implements org. |
| delegate | back to summary |
|---|---|
| private final SessionBuilder<T extends SessionBuilder> delegate | |
| AbstractDelegatingSessionBuilder | back to summary |
|---|---|
| public AbstractDelegatingSessionBuilder(SessionBuilder<T extends SessionBuilder> delegate) | |
| autoClear | back to summary |
|---|---|
| public T autoClear(boolean autoClear) Implements org. Doc from org. Should the session be automatically cleared on a failed transaction?
| |
| autoClose | back to summary |
|---|---|
| public T autoClose(boolean autoClose) Implements org. Doc from org. Should the session be automatically closed after transaction completion?
| |
| autoJoinTransactions | back to summary |
|---|---|
| public T autoJoinTransactions(boolean autoJoinTransactions) Implements org. Doc from org. Should the session built automatically join in any ongoing JTA transactions.
| |
| clearEventListeners | back to summary |
|---|---|
| public T 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 T connection(Connection connection) Implements org. Doc from org. Adds a specific connection to the session options.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public T 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 T connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode) Implements org. Doc from org. Use a specific connection release mode for these session options.
| |
| delegate | back to summary |
|---|---|
| protected SessionBuilder | |
| eventListeners | back to summary |
|---|---|
| public T eventListeners(SessionEventListener... listeners) Implements org. Doc from org. Apply one or more SessionEventListener instances to the listeners for the Session to be built.
| |
| flushBeforeCompletion | back to summary |
|---|---|
| public 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(FlushMode flushMode) Implements org. Doc from org. Specify the initial FlushMode to use for the opened Session | |
| getThis | back to summary |
|---|---|
protected T getThis()
| |
| interceptor | back to summary |
|---|---|
| public T interceptor(Interceptor interceptor) Implements org. Doc from org. Adds a specific interceptor to the session options.
| |
| jdbcTimeZone | back to summary |
|---|---|
| public T jdbcTimeZone(TimeZone timeZone) Implements org.
| |
| noInterceptor | back to summary |
|---|---|
| public T noInterceptor() Implements org. Doc from org. Signifies that no
By default the
Calling
| |
| openSession | back to summary |
|---|---|
| public Session openSession() Implements org. Doc from org. Deprecated as a consequence of Opens a session with the specified options. | |
| setQueryParameterValidation | back to summary |
|---|---|
| public T setQueryParameterValidation(boolean enabled) Overrides default org. Doc from org. Should
| |
| statementInspector | back to summary |
|---|---|
| public T statementInspector(StatementInspector statementInspector) Implements org. Doc from org. Applies a specific StatementInspector to the session options.
| |
| tenantIdentifier | back to summary |
|---|---|
| public T tenantIdentifier(String tenantIdentifier) Implements org. Doc from org. Define the tenant identifier to be associated with the opened session. | |