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

com.easy.query.solon.integration.conn.SolonDataSourceUnit Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.easy.query.solon.integration.conn;

import com.easy.query.core.datasource.DefaultDataSourceUnit;
import org.noear.solon.data.tran.TranUtils;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * create time 2023/5/27 23:18
 * 文件说明
 *
 * @author xuejiaming
 */
public class SolonDataSourceUnit extends DefaultDataSourceUnit {
    public SolonDataSourceUnit(String dataSourceName, DataSource dataSource, int mergePoolSize, boolean warningBusy) {
        super(dataSourceName,dataSource,mergePoolSize,warningBusy);
    }

    @Override
    protected Connection getConnection() throws SQLException {
        return TranUtils.getConnection(dataSource);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy