程序包 org.hibernate
接口 SharedSessionBuilder<T extends SharedSessionBuilder>
-
- 所有超级接口:
SessionBuilder<T>
public interface SharedSessionBuilder<T extends SharedSessionBuilder> extends SessionBuilder<T>
SpecializedSessionBuilderwith access to stuff from another session.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 已过时的方法 修饰符和类型 方法 说明 TautoClose()Signifies that the autoClose flag from the original session should be used to create the new session.TautoClose(boolean autoClose)Should the session be automatically closed after transaction completion?TautoJoinTransactions()Signifies that the autoJoinTransaction flag from the original session should be used to create the new session.TautoJoinTransactions(boolean autoJoinTransactions)Should the session built automatically join in any ongoing JTA transactions.Tconnection()Signifies that the connection from the original session should be used to create the new session.Tconnection(Connection connection)Adds a specific connection to the session options.TconnectionHandlingMode()Signifies that the connection release mode from the original session should be used to create the new session.TconnectionReleaseMode()已过时。(snce 6.0) useconnectionHandlingMode()instead.TconnectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)Use a specific connection release mode for these session options.default TflushBeforeCompletion()已过时。(since 5.2) useflushMode()instead.default TflushBeforeCompletion(boolean flushBeforeCompletion)Should the session be automatically flushed during the "before completion" phase of transaction handling.TflushMode()Signifies that the FlushMode from the original session should be used to create the new session.Tinterceptor()Signifies the interceptor from the original session should be used to create the new session.Tinterceptor(Interceptor interceptor)Adds a specific interceptor to the session options.TnoInterceptor()Signifies that noInterceptorshould be used.default TtransactionContext()已过时。Useconnection()instead
-
-
-
方法详细资料
-
transactionContext
@Deprecated default T transactionContext()
已过时。Useconnection()insteadSignifies that the transaction context from the original session should be used to create the new session.- 返回:
this, for method chaining
-
connection
T connection()
Signifies that the connection from the original session should be used to create the new session.- 返回:
this, for method chaining
-
interceptor
T interceptor()
Signifies the interceptor from the original session should be used to create the new session.- 返回:
this, for method chaining
-
connectionReleaseMode
@Deprecated T connectionReleaseMode()
已过时。(snce 6.0) useconnectionHandlingMode()instead.Signifies that the connection release mode from the original session should be used to create the new session.- 返回:
this, for method chaining
-
connectionHandlingMode
T connectionHandlingMode()
Signifies that the connection release mode from the original session should be used to create the new session.- 返回:
this, for method chaining
-
autoJoinTransactions
T autoJoinTransactions()
Signifies that the autoJoinTransaction flag from the original session should be used to create the new session.- 返回:
this, for method chaining
-
flushMode
T flushMode()
Signifies that the FlushMode from the original session should be used to create the new session.- 返回:
this, for method chaining
-
autoClose
T autoClose()
Signifies that the autoClose flag from the original session should be used to create the new session.- 返回:
this, for method chaining
-
flushBeforeCompletion
@Deprecated default T flushBeforeCompletion()
已过时。(since 5.2) useflushMode()instead.Signifies that the flushBeforeCompletion flag from the original session should be used to create the new session.- 返回:
this, for method chaining
-
interceptor
T interceptor(Interceptor interceptor)
从接口复制的说明:SessionBuilderAdds a specific interceptor to the session options.- 指定者:
interceptor在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
interceptor- The interceptor to use.- 返回:
this, for method chaining
-
noInterceptor
T noInterceptor()
从接口复制的说明:SessionBuilderSignifies that noInterceptorshould be used. By default theInterceptorassociated with theSessionFactoryis passed to theSessionwhenever we open one without the user having specified a specific interceptor to use. CallingSessionBuilder.interceptor(Interceptor)with null has the same net effect.- 指定者:
noInterceptor在接口中SessionBuilder<T extends SharedSessionBuilder>- 返回:
this, for method chaining
-
connection
T connection(Connection connection)
从接口复制的说明:SessionBuilderAdds a specific connection to the session options.- 指定者:
connection在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
connection- The connection to use.- 返回:
this, for method chaining
-
connectionReleaseMode
T connectionReleaseMode(ConnectionReleaseMode connectionReleaseMode)
从接口复制的说明:SessionBuilderUse a specific connection release mode for these session options.- 指定者:
connectionReleaseMode在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
connectionReleaseMode- The connection release mode to use.- 返回:
this, for method chaining
-
autoJoinTransactions
T autoJoinTransactions(boolean autoJoinTransactions)
从接口复制的说明:SessionBuilderShould the session built automatically join in any ongoing JTA transactions.- 指定者:
autoJoinTransactions在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
autoJoinTransactions- Should JTA transactions be automatically joined- 返回:
this, for method chaining- 另请参阅:
SynchronizationType.SYNCHRONIZED
-
autoClose
T autoClose(boolean autoClose)
从接口复制的说明:SessionBuilderShould the session be automatically closed after transaction completion?- 指定者:
autoClose在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
autoClose- Should the session be automatically closed- 返回:
this, for method chaining- 另请参阅:
PersistenceContextType
-
flushBeforeCompletion
default T flushBeforeCompletion(boolean flushBeforeCompletion)
从接口复制的说明:SessionBuilderShould the session be automatically flushed during the "before completion" phase of transaction handling.- 指定者:
flushBeforeCompletion在接口中SessionBuilder<T extends SharedSessionBuilder>- 参数:
flushBeforeCompletion- Should the session be automatically flushed- 返回:
this, for method chaining
-
-