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

com.avaje.ebeaninternal.server.transaction.DataSourceSupplier Maven / Gradle / Ivy

There is a newer version: 9.5.1
Show newest version
package com.avaje.ebeaninternal.server.transaction;

import javax.sql.DataSource;

/**
 * Supply the DataSource to the transaction manager.
 * 

* Implementations can support multi-tenancy via DB or SCHEMA. *

*/ public interface DataSourceSupplier { /** * Return the DataSource to use for the current request. *

* This should take into account multi-tenancy and the current tenantId. *

*/ DataSource getDataSource(); /** * Shutdown the datasource de-registering the JDBC driver if requested. */ void shutdown(boolean deregisterDriver); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy