public class FullTextSharedSessionBuilderDelegator extends Object implements FullTextSharedSessionBuilder
Constructor and Description |
---|
FullTextSharedSessionBuilderDelegator(SharedSessionBuilder builder) |
Modifier and Type | Method and Description |
---|---|
FullTextSharedSessionBuilder |
autoClose()
Signifies that the autoClose flag from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
autoClose(boolean autoClose)
Should the session be automatically closed after transaction completion
|
FullTextSharedSessionBuilder |
autoJoinTransactions()
Signifies that the autoJoinTransaction flag from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
autoJoinTransactions(boolean autoJoinTransactions)
Should the session built automatically join in any ongoing JTA transactions
|
FullTextSharedSessionBuilder |
connection()
Signifies that the connection from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
connection(Connection connection)
Adds a specific connection to the session options
|
FullTextSharedSessionBuilder |
connectionReleaseMode()
Signifies that the connection release mode from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
Use a specific connection release mode for these session options
|
FullTextSharedSessionBuilder |
flushBeforeCompletion()
Signifies that the flushBeforeCompletion flag from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
flushBeforeCompletion(boolean flushBeforeCompletion)
Should the session be automatically flushed during the "before completion" phase of transaction handling.
|
FullTextSharedSessionBuilder |
interceptor()
Signifies the interceptor from the original session should be used to create the new session
|
FullTextSharedSessionBuilder |
interceptor(Interceptor interceptor)
Adds a specific interceptor to the session options
|
FullTextSharedSessionBuilder |
noInterceptor()
Signifies that no
Interceptor should be used. |
FullTextSession |
openSession()
Opens a session with the specified options.
|
FullTextSharedSessionBuilder |
tenantIdentifier(String tenantIdentifier)
Define the tenant identifier to be associated with the opened session.
|
FullTextSharedSessionBuilder |
transactionContext()
Signifies that the transaction context from the original session should be used to create the new session
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearEventListeners, eventListeners
public FullTextSharedSessionBuilderDelegator(SharedSessionBuilder builder)
public FullTextSharedSessionBuilder interceptor()
SharedSessionBuilder
interceptor
in interface FullTextSharedSessionBuilder
interceptor
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder connection()
SharedSessionBuilder
connection
in interface FullTextSharedSessionBuilder
connection
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder connectionReleaseMode()
SharedSessionBuilder
connectionReleaseMode
in interface FullTextSharedSessionBuilder
connectionReleaseMode
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder autoJoinTransactions()
SharedSessionBuilder
autoJoinTransactions
in interface FullTextSharedSessionBuilder
autoJoinTransactions
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder autoClose()
SharedSessionBuilder
autoClose
in interface FullTextSharedSessionBuilder
autoClose
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder flushBeforeCompletion()
SharedSessionBuilder
flushBeforeCompletion
in interface FullTextSharedSessionBuilder
flushBeforeCompletion
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder transactionContext()
SharedSessionBuilder
transactionContext
in interface FullTextSharedSessionBuilder
transactionContext
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder interceptor(Interceptor interceptor)
SessionBuilder
interceptor
in interface FullTextSharedSessionBuilder
interceptor
in interface SessionBuilder
interceptor
in interface SharedSessionBuilder
interceptor
- The interceptor to use.this
, for method chainingpublic FullTextSharedSessionBuilder noInterceptor()
SessionBuilder
Interceptor
should be used.
By default the Interceptor
associated with the SessionFactory
is passed to the
Session
whenever we open one without the user having specified a specific interceptor to
use.
Calling SessionBuilder.interceptor(Interceptor)
with null has the same net effect.noInterceptor
in interface FullTextSharedSessionBuilder
noInterceptor
in interface SessionBuilder
noInterceptor
in interface SharedSessionBuilder
this
, for method chainingpublic FullTextSharedSessionBuilder connection(Connection connection)
SessionBuilder
connection
in interface FullTextSharedSessionBuilder
connection
in interface SessionBuilder
connection
in interface SharedSessionBuilder
connection
- The connection to use.this
, for method chainingpublic FullTextSharedSessionBuilder connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
SessionBuilder
connectionReleaseMode
in interface FullTextSharedSessionBuilder
connectionReleaseMode
in interface SessionBuilder
connectionReleaseMode
in interface SharedSessionBuilder
connectionReleaseMode
- The connection release mode to use.this
, for method chainingpublic FullTextSharedSessionBuilder autoJoinTransactions(boolean autoJoinTransactions)
SessionBuilder
autoJoinTransactions
in interface FullTextSharedSessionBuilder
autoJoinTransactions
in interface SessionBuilder
autoJoinTransactions
in interface SharedSessionBuilder
autoJoinTransactions
- Should JTA transactions be automatically joinedthis
, for method chainingpublic FullTextSharedSessionBuilder autoClose(boolean autoClose)
SessionBuilder
autoClose
in interface FullTextSharedSessionBuilder
autoClose
in interface SessionBuilder
autoClose
in interface SharedSessionBuilder
autoClose
- Should the session be automatically closedthis
, for method chainingpublic FullTextSharedSessionBuilder flushBeforeCompletion(boolean flushBeforeCompletion)
SessionBuilder
flushBeforeCompletion
in interface FullTextSharedSessionBuilder
flushBeforeCompletion
in interface SessionBuilder
flushBeforeCompletion
in interface SharedSessionBuilder
flushBeforeCompletion
- Should the session be automatically flushedthis
, for method chainingpublic FullTextSession openSession()
SessionBuilder
openSession
in interface FullTextSharedSessionBuilder
openSession
in interface SessionBuilder
public FullTextSharedSessionBuilder tenantIdentifier(String tenantIdentifier)
SessionBuilder
tenantIdentifier
in interface FullTextSharedSessionBuilder
tenantIdentifier
in interface SessionBuilder
tenantIdentifier
- The tenant identifier.this
, for method chainingCopyright © 2018 JBoss by Red Hat. All rights reserved.