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.intbooleanbooleanOpens a session with the specified options.booleanbooleanbooleanstatementInspector(UnaryOperator<String> operator) Applies the given statement inspection function to the session.statementInspector(StatementInspector statementInspector) Deprecated.tenantIdentifier(Object tenantIdentifier) Define the tenant identifier to be associated with the opened session.tenantIdentifier(String tenantIdentifier) Deprecated.
-
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
Deprecated.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
@Deprecated public StatelessSessionBuilder statementInspector(StatementInspector statementInspector) Deprecated.Description copied from interface:StatelessSessionBuilderApplies the givenStatementInspectorto the session.- Specified by:
statementInspectorin interfaceStatelessSessionBuilder- Parameters:
statementInspector- TheStatementInspectorto use.- Returns:
this, for method chaining
-
statementInspector
Description copied from interface:StatelessSessionBuilderApplies the given statement inspection function to the session.- Specified by:
statementInspectorin interfaceStatelessSessionBuilder- Parameters:
operator- An operator which accepts a SQL string, returning a processed SQL string to be used by Hibernate instead of the given original SQL. Alternatively. the operator may work by side effect, and simply return the original SQL.- 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
-
isIdentifierRollbackEnabled
public boolean isIdentifierRollbackEnabled()- Specified by:
isIdentifierRollbackEnabledin 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
-