类 SessionFactoryImpl.StatelessSessionBuilderImpl
- java.lang.Object
-
- org.hibernate.internal.SessionFactoryImpl.StatelessSessionBuilderImpl
-
- 所有已实现的接口:
SessionCreationOptions,StatelessSessionBuilder
- 封闭类:
- SessionFactoryImpl
public static class SessionFactoryImpl.StatelessSessionBuilderImpl extends Object implements StatelessSessionBuilder, SessionCreationOptions
-
-
构造器概要
构造器 构造器 说明 StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory)
-
方法概要
-
-
-
构造器详细资料
-
StatelessSessionBuilderImpl
public StatelessSessionBuilderImpl(SessionFactoryImpl sessionFactory)
-
-
方法详细资料
-
openStatelessSession
public StatelessSession openStatelessSession()
从接口复制的说明:StatelessSessionBuilderOpens a session with the specified options.- 指定者:
openStatelessSession在接口中StatelessSessionBuilder- 返回:
- The session
-
connection
public StatelessSessionBuilder connection(Connection connection)
从接口复制的说明:StatelessSessionBuilderAdds a specific connection to the session options.- 指定者:
connection在接口中StatelessSessionBuilder- 参数:
connection- The connection to use.- 返回:
this, for method chaining
-
tenantIdentifier
public StatelessSessionBuilder tenantIdentifier(String tenantIdentifier)
从接口复制的说明:StatelessSessionBuilderDefine the tenant identifier to be associated with the opened session.- 指定者:
tenantIdentifier在接口中StatelessSessionBuilder- 参数:
tenantIdentifier- The tenant identifier.- 返回:
this, for method chaining
-
shouldAutoJoinTransactions
public boolean shouldAutoJoinTransactions()
-
getInitialSessionFlushMode
public FlushMode getInitialSessionFlushMode()
-
shouldAutoClose
public boolean shouldAutoClose()
- 指定者:
shouldAutoClose在接口中SessionCreationOptions
-
shouldAutoClear
public boolean shouldAutoClear()
- 指定者:
shouldAutoClear在接口中SessionCreationOptions
-
getConnection
public Connection getConnection()
- 指定者:
getConnection在接口中SessionCreationOptions
-
getInterceptor
public Interceptor getInterceptor()
- 指定者:
getInterceptor在接口中SessionCreationOptions
-
getStatementInspector
public StatementInspector getStatementInspector()
- 指定者:
getStatementInspector在接口中SessionCreationOptions
-
getPhysicalConnectionHandlingMode
public PhysicalConnectionHandlingMode getPhysicalConnectionHandlingMode()
-
getTenantIdentifier
public String getTenantIdentifier()
- 指定者:
getTenantIdentifier在接口中SessionCreationOptions
-
getJdbcTimeZone
public TimeZone getJdbcTimeZone()
- 指定者:
getJdbcTimeZone在接口中SessionCreationOptions
-
getCustomSessionEventListener
public List<SessionEventListener> getCustomSessionEventListener()
- 指定者:
getCustomSessionEventListener在接口中SessionCreationOptions- 返回:
- the full list of SessionEventListener if this was customized, or null if this Session is being created with the default list.
-
getSessionOwner
public SessionOwner getSessionOwner()
从接口复制的说明:SessionCreationOptionsAccess to the SessionOwner, which defines the contract for things that can wrap a Session- 指定者:
getSessionOwner在接口中SessionCreationOptions- 返回:
- Always returns null.
-
getExceptionMapper
public ExceptionMapper getExceptionMapper()
- 指定者:
getExceptionMapper在接口中SessionCreationOptions
-
getAfterCompletionAction
public AfterCompletionAction getAfterCompletionAction()
-
getManagedFlushChecker
public ManagedFlushChecker getManagedFlushChecker()
- 指定者:
getManagedFlushChecker在接口中SessionCreationOptions
-
isQueryParametersValidationEnabled
public boolean isQueryParametersValidationEnabled()
-
setQueryParameterValidation
public StatelessSessionBuilder setQueryParameterValidation(boolean enabled)
从接口复制的说明:StatelessSessionBuilderShouldQuery.setParameter(javax.persistence.Parameter<java.time.Instant>, java.time.Instant, javax.persistence.TemporalType)perform parameter validation when the Session is bootstrapped via JPAEntityManagerFactory- 指定者:
setQueryParameterValidation在接口中StatelessSessionBuilder- 参数:
enabled-trueindicates the validation should be performed,falseotherwiseThe default value is
true- 返回:
this, for method chaining
-
-