Package org.hibernate.internal
Class SessionFactoryImpl.StatelessSessionBuilderImpl
java.lang.Object
org.hibernate.internal.SessionFactoryImpl.StatelessSessionBuilderImpl
- All Implemented Interfaces:
SessionCreationOptions,StatelessSessionBuilder
- Enclosing class:
- SessionFactoryImpl
public static class SessionFactoryImpl.StatelessSessionBuilderImpl
extends Object
implements StatelessSessionBuilder, SessionCreationOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnection(Connection connection) Adds a specific connection to the session options.intbooleanOpens a session with the specified options.booleanbooleanbooleanstatementInspector(StatementInspector statementInspector) Applies the givenStatementInspectorto the stateless session.tenantIdentifier(Object tenantIdentifier) Define the tenant identifier to be associated with the opened session.tenantIdentifier(String tenantIdentifier) Define the tenant identifier to be associated with the opened session.
-
Constructor Details
-
StatelessSessionBuilderImpl
-
-
Method Details
-
openStatelessSession
Description copied from interface:StatelessSessionBuilderOpens a session with the specified options.- Specified by:
openStatelessSessionin interfaceStatelessSessionBuilder- Returns:
- The session
-
connection
Description copied from interface:StatelessSessionBuilderAdds a specific connection to the session options.- Specified by:
connectionin interfaceStatelessSessionBuilder- Parameters:
connection- The connection to use.- Returns:
this, for method chaining
-
tenantIdentifier
Description copied from interface:StatelessSessionBuilderDefine the tenant identifier to be associated with the opened session.- Specified by:
tenantIdentifierin interfaceStatelessSessionBuilder- Parameters:
tenantIdentifier- The tenant identifier.- Returns:
this, for method chaining
-
tenantIdentifier
Description copied from interface:StatelessSessionBuilderDefine the tenant identifier to be associated with the opened session.- Specified by:
tenantIdentifierin interfaceStatelessSessionBuilder- Parameters:
tenantIdentifier- The tenant identifier.- Returns:
this, for method chaining
-
statementInspector
Description copied from interface:StatelessSessionBuilderApplies the givenStatementInspectorto the stateless session.- Specified by:
statementInspectorin interfaceStatelessSessionBuilder- Parameters:
statementInspector- The StatementInspector to use.- Returns:
this, for method chaining
-
shouldAutoJoinTransactions
public boolean shouldAutoJoinTransactions()- Specified by:
shouldAutoJoinTransactionsin interfaceSessionCreationOptions
-
getInitialSessionFlushMode
- Specified by:
getInitialSessionFlushModein interfaceSessionCreationOptions
-
isSubselectFetchEnabled
public boolean isSubselectFetchEnabled()- Specified by:
isSubselectFetchEnabledin interfaceSessionCreationOptions
-
getDefaultBatchFetchSize
public int getDefaultBatchFetchSize()- Specified by:
getDefaultBatchFetchSizein interfaceSessionCreationOptions
-
shouldAutoClose
public boolean shouldAutoClose()- Specified by:
shouldAutoClosein interfaceSessionCreationOptions
-
shouldAutoClear
public boolean shouldAutoClear()- Specified by:
shouldAutoClearin interfaceSessionCreationOptions
-
getConnection
- Specified by:
getConnectionin interfaceSessionCreationOptions
-
getInterceptor
- Specified by:
getInterceptorin interfaceSessionCreationOptions
-
getStatementInspector
- Specified by:
getStatementInspectorin interfaceSessionCreationOptions
-
getPhysicalConnectionHandlingMode
- Specified by:
getPhysicalConnectionHandlingModein interfaceSessionCreationOptions
-
getTenantIdentifier
- Specified by:
getTenantIdentifierin interfaceSessionCreationOptions
-
getTenantIdentifierValue
- Specified by:
getTenantIdentifierValuein interfaceSessionCreationOptions
-
getJdbcTimeZone
- Specified by:
getJdbcTimeZonein interfaceSessionCreationOptions
-
getCustomSessionEventListener
- Specified by:
getCustomSessionEventListenerin interfaceSessionCreationOptions- Returns:
- the full list of SessionEventListener if this was customized, or null if this Session is being created with the default list.
-
getExceptionMapper
- Specified by:
getExceptionMapperin interfaceSessionCreationOptions
-