程序包 org.hibernate

接口 StatelessSessionBuilder<T extends StatelessSessionBuilder>

  • 所有已知实现类:
    SessionFactoryImpl.StatelessSessionBuilderImpl

    public interface StatelessSessionBuilder<T extends StatelessSessionBuilder>
    Represents a consolidation of all stateless session creation options into a builder style delegate.
    作者:
    Steve Ebersole
    • 方法详细资料

      • openStatelessSession

        StatelessSession openStatelessSession()
        Opens a session with the specified options.
        返回:
        The session
      • connection

        T connection​(Connection connection)
        Adds a specific connection to the session options.
        参数:
        connection - The connection to use.
        返回:
        this, for method chaining
      • tenantIdentifier

        T tenantIdentifier​(String tenantIdentifier)
        Define the tenant identifier to be associated with the opened session.
        参数:
        tenantIdentifier - The tenant identifier.
        返回:
        this, for method chaining