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

cn.sylinx.hbatis.ds.DataSourceWrapper Maven / Gradle / Ivy

The newest version!
package cn.sylinx.hbatis.ds;

import javax.sql.DataSource;

import cn.sylinx.hbatis.db.dialect.DbType;

public class DataSourceWrapper {

	private DataSource dataSource;
	private DbType dbType = DbType.MYSQL;

	public static DataSourceWrapper create(DataSource dataSource, DbType dbType) {
		DataSourceWrapper dsw = new DataSourceWrapper();
		dsw.setDataSource(dataSource);
		dsw.setDbType(dbType);
		return dsw;
	}

	public DataSource getDataSource() {
		return dataSource;
	}

	public void setDataSource(DataSource dataSource) {
		this.dataSource = dataSource;
	}

	public DbType getDbType() {
		return dbType;
	}

	public void setDbType(DbType dbType) {
		this.dbType = dbType;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy