All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cds.transaction.spi.TransactionManagerFactory Maven / Gradle / Ivy

There is a newer version: 3.8.0
Show newest version
/*******************************************************************
 * © 2019 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.transaction.spi;

import java.sql.Connection;
import java.util.function.Supplier;

/**
 * Factory for a transaction manager
 *
 * @param  the data source type
 */
public interface TransactionManagerFactory {

	/**
	 * Creates or gets a singleton instance of a transaction manager
	 * 
	 * @return the singleton instance
	 */
	ContainerTransactionManager getTransactionManger();

	/**
	 * Get the data source managed by the singleton instance of the transaction
	 * manager
	 * 
	 * @return the managed data source
	 */
	Supplier getConnectionSupplier();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy