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 SessionBuilder | autoClear(boolean
Whether the Session should be automatically cleared autoClear)Implements org. |
| public SessionBuilder | autoClose(boolean
Should the session be automatically closed autoClose)Implements org. |
| public SessionBuilder | autoJoinTransactions(boolean
Should JTA transactions be automatically joined autoJoinTransactions)Implements org. |
| public SessionBuilder | clearEventListeners()
Implements org. |
| public SessionBuilder | connection(Connection
The connection to use. connection)Implements org. |
| public SessionBuilder | connectionHandlingMode(PhysicalConnectionHandlingMode
The connection handling mode to use. mode)Implements org. |
| protected SessionBuilder | |
| public SessionBuilder | 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 SessionBuilder | flushMode(FlushMode
The initial FlushMode to use for the opened Session flushMode)Implements org. |
| protected SessionBuilder | |
| public SessionBuilder | interceptor(Interceptor
The interceptor to use. interceptor)Implements org. |
| public SessionBuilder | |
| public SessionBuilder | noInterceptor()
Implements org. Interceptor should be used.
|
| public Session | openSession()
Implements org. |
| public SessionBuilder | statementInspector(StatementInspector
The StatementInspector to use. statementInspector)Implements org. StatementInspector to the session.
|
| public SessionBuilder | tenantIdentifier(String
The tenant identifier. tenantIdentifier)Implements org. |
| public SessionBuilder | tenantIdentifier(Object
The tenant identifier. tenantIdentifier)Implements org. |
| delegate | back to summary |
|---|---|
| private final SessionBuilder delegate | |
| AbstractDelegatingSessionBuilder | back to summary |
|---|---|
| public AbstractDelegatingSessionBuilder(SessionBuilder delegate) | |
| autoClear | back to summary |
|---|---|
| public SessionBuilder autoClear(boolean autoClear) Implements org. Doc from org. Should the session be automatically cleared on a failed transaction?
| |
| autoClose | back to summary |
|---|---|
| public SessionBuilder autoClose(boolean autoClose) Implements org. Doc from org. Should the session be automatically closed after transaction completion?
| |
| autoJoinTransactions | back to summary |
|---|---|
| public SessionBuilder autoJoinTransactions(boolean autoJoinTransactions) Implements org. Doc from org. Should the session built automatically join in any ongoing JTA transactions.
| |
| clearEventListeners | back to summary |
|---|---|
| public SessionBuilder 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 SessionBuilder connection(Connection connection) Implements org. Doc from org. Adds a specific connection to the session options.
| |
| connectionHandlingMode | back to summary |
|---|---|
| public SessionBuilder 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.
| |
| delegate | back to summary |
|---|---|
| protected SessionBuilder delegate() | |
| eventListeners | back to summary |
|---|---|
| public SessionBuilder eventListeners(SessionEventListener... listeners) Implements org. Doc from org. Add one or more
| |
| flushMode | back to summary |
|---|---|
| public SessionBuilder flushMode(FlushMode flushMode) Implements org. Doc from org. Specify the initial FlushMode to use for the opened Session
| |
| getThis | back to summary |
|---|---|
| protected SessionBuilder getThis() | |
| interceptor | back to summary |
|---|---|
| public SessionBuilder interceptor(Interceptor interceptor) Implements org. Doc from org. Adds a specific interceptor to the session options.
| |
| jdbcTimeZone | back to summary |
|---|---|
| public SessionBuilder jdbcTimeZone(TimeZone timeZone) Implements org.
| |
| noInterceptor | back to summary |
|---|---|
| public SessionBuilder 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 SessionBuilder statementInspector(StatementInspector statementInspector) Implements org. Doc from org. Applies the given
| |
| tenantIdentifier | back to summary |
|---|---|
| public SessionBuilder tenantIdentifier(String tenantIdentifier) Implements org. Doc from org. Define the tenant identifier to be associated with the opened session.
| |
| tenantIdentifier | back to summary |
|---|---|
| public SessionBuilder tenantIdentifier(Object tenantIdentifier) Implements org. Doc from org. Define the tenant identifier to be associated with the opened session.
| |