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

org.hswebframework.web.datasource.DynamicDataSource Maven / Gradle / Ivy

Go to download

数据源管理API,以及简单的多数据源实现,支持aop,表达式等多种方式切换数据源

There is a newer version: 4.0.17
Show newest version
package org.hswebframework.web.datasource;

import org.hswebframework.web.datasource.switcher.DataSourceSwitcher;

import javax.sql.DataSource;

/**
 * 动态数据源
 *
 * @author zhouhao
 * @since 3.0
 */
public interface DynamicDataSource {

    /**
     * @return 数据源ID
     * @see DataSourceSwitcher#currentDataSourceId()
     */
    String getId();

    /**
     * @return 数据库类型
     * @see DatabaseType
     */
    DatabaseType getType();

    /**
     * @return 原始数据源
     */
    T getNative();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy