
com.sap.cds.transaction.spi.TransactionManagerFactory Maven / Gradle / Ivy
/*******************************************************************
* © 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