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

com.mybatisflex.solon.integration.FlexRoutingDataSource Maven / Gradle / Ivy

The newest version!
package com.mybatisflex.solon.integration;

import com.mybatisflex.core.datasource.FlexDataSource;
import org.noear.solon.data.datasource.RoutingDataSource;

import javax.sql.DataSource;

/**
 * 用与 solon 的事务对接
 *
 * @author noear
 * @since 2.8
 */
public class FlexRoutingDataSource extends FlexDataSource implements RoutingDataSource {
    public FlexRoutingDataSource(String dataSourceKey, DataSource dataSource) {
        super(dataSourceKey, dataSource);
    }

    public FlexRoutingDataSource(String dataSourceKey, DataSource dataSource, boolean needDecryptDataSource) {
        super(dataSourceKey, dataSource, needDecryptDataSource);
    }

    @Override
    public DataSource determineCurrentTarget() {
        return getDataSource();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy