org.hibernate.StatelessSessionBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beangle-hibernate-core Show documentation
Show all versions of beangle-hibernate-core Show documentation
Hibernate Orm Core Shade,Support Scala Collection
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
package org.hibernate;
import java.sql.Connection;
/**
* Allows creation of a new {@link StatelessSession} with specific options.
*
* @author Steve Ebersole
*/
public interface StatelessSessionBuilder {
/**
* Opens a session with the specified options.
*
* @return The session
*/
StatelessSession openStatelessSession();
/**
* Adds a specific connection to the session options.
*
* @param connection The connection to use.
*
* @return {@code this}, for method chaining
*/
StatelessSessionBuilder connection(Connection connection);
/**
* Define the tenant identifier to be associated with the opened session.
*
* @param tenantIdentifier The tenant identifier.
*
* @return {@code this}, for method chaining
*/
StatelessSessionBuilder tenantIdentifier(String tenantIdentifier);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy