public interface FullTextSharedSessionBuilder extends SharedSessionBuilder
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)
Deprecated.
|
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()
Deprecated.
|
FullTextSharedSessionBuilder |
connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
Deprecated.
|
FullTextSharedSessionBuilder |
flushBeforeCompletion()
Deprecated.
|
FullTextSharedSessionBuilder |
flushBeforeCompletion(boolean flushBeforeCompletion)
Deprecated.
|
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()
Deprecated.
|
connectionHandlingMode, flushMode
autoClear, clearEventListeners, connectionHandlingMode, eventListeners, flushMode, jdbcTimeZone, setQueryParameterValidation, statementInspector
FullTextSharedSessionBuilder interceptor()
SharedSessionBuilder
interceptor
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder connection()
SharedSessionBuilder
connection
in interface SharedSessionBuilder
this
, for method chaining@Deprecated FullTextSharedSessionBuilder connectionReleaseMode()
SharedSessionBuilder
connectionReleaseMode
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder autoJoinTransactions()
SharedSessionBuilder
autoJoinTransactions
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder autoClose()
SharedSessionBuilder
autoClose
in interface SharedSessionBuilder
this
, for method chaining@Deprecated FullTextSharedSessionBuilder flushBeforeCompletion()
SharedSessionBuilder
flushBeforeCompletion
in interface SharedSessionBuilder
this
, for method chaining@Deprecated FullTextSharedSessionBuilder transactionContext()
SharedSessionBuilder
transactionContext
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder interceptor(Interceptor interceptor)
SessionBuilder
interceptor
in interface SessionBuilder
interceptor
in interface SharedSessionBuilder
interceptor
- The interceptor to use.this
, for method chainingFullTextSharedSessionBuilder 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 SessionBuilder
noInterceptor
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder connection(Connection connection)
SessionBuilder
connection
in interface SessionBuilder
connection
in interface SharedSessionBuilder
connection
- The connection to use.this
, for method chaining@Deprecated FullTextSharedSessionBuilder connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
SessionBuilder
connectionReleaseMode
in interface SessionBuilder
connectionReleaseMode
in interface SharedSessionBuilder
connectionReleaseMode
- The connection release mode to use.this
, for method chainingFullTextSharedSessionBuilder autoJoinTransactions(boolean autoJoinTransactions)
SessionBuilder
autoJoinTransactions
in interface SessionBuilder
autoJoinTransactions
in interface SharedSessionBuilder
autoJoinTransactions
- Should JTA transactions be automatically joinedthis
, for method chainingSynchronizationType.SYNCHRONIZED
@Deprecated FullTextSharedSessionBuilder autoClose(boolean autoClose)
SessionBuilder
autoClose
in interface SessionBuilder
autoClose
in interface SharedSessionBuilder
autoClose
- Should the session be automatically closedthis
, for method chainingPersistenceContextType
@Deprecated FullTextSharedSessionBuilder flushBeforeCompletion(boolean flushBeforeCompletion)
SessionBuilder
flushBeforeCompletion
in interface SessionBuilder
flushBeforeCompletion
in interface SharedSessionBuilder
flushBeforeCompletion
- Should the session be automatically flushedthis
, for method chainingFullTextSession openSession()
SessionBuilder
openSession
in interface SessionBuilder
FullTextSharedSessionBuilder tenantIdentifier(String tenantIdentifier)
SessionBuilder
tenantIdentifier
in interface SessionBuilder
tenantIdentifier
- The tenant identifier.this
, for method chainingCopyright © 2019 JBoss by Red Hat. All rights reserved.