public interface FullTextSharedSessionBuilder extends SharedSessionBuilder
Modifier and Type | Method and Description |
---|---|
FullTextSharedSessionBuilder |
autoClose()
Deprecated.
|
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()
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.
|
clearEventListeners, eventListeners, statementInspector
FullTextSharedSessionBuilder interceptor()
SharedSessionBuilder
interceptor
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder connection()
SharedSessionBuilder
connection
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder connectionReleaseMode()
SharedSessionBuilder
connectionReleaseMode
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder autoJoinTransactions()
SharedSessionBuilder
autoJoinTransactions
in interface SharedSessionBuilder
this
, for method chaining@Deprecated FullTextSharedSessionBuilder autoClose()
SharedSessionBuilder
autoClose
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder flushBeforeCompletion()
SharedSessionBuilder
flushBeforeCompletion
in interface SharedSessionBuilder
this
, for method chainingFullTextSharedSessionBuilder 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 chainingFullTextSharedSessionBuilder 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 chaining@Deprecated FullTextSharedSessionBuilder autoClose(boolean autoClose)
SessionBuilder
autoClose
in interface SessionBuilder
autoClose
in interface SharedSessionBuilder
autoClose
- Should the session be automatically closedthis
, for method chainingFullTextSharedSessionBuilder 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 © 2016 JBoss by Red Hat. All rights reserved.