@Component public class RuntimeHolder extends Object implements org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
RuntimeHolder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DataSource |
getDataSource() |
static DataSource |
getDataSource(String key) |
static org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate() |
static org.springframework.jdbc.core.JdbcTemplate |
getJdbcTemplate(String key) |
static JDBCRuntime |
getRuntime() |
static JDBCRuntime |
getRuntime(String datasource) |
static void |
reg(String key,
DataSource ds) |
static void |
reg(String datasource,
org.springframework.jdbc.core.JdbcTemplate template,
JDBCAdapter adapter) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic static void reg(String key, DataSource ds)
public static void reg(String datasource, org.springframework.jdbc.core.JdbcTemplate template, JDBCAdapter adapter)
public static JDBCRuntime getRuntime()
public static JDBCRuntime getRuntime(String datasource)
public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate()
public static DataSource getDataSource()
public static org.springframework.jdbc.core.JdbcTemplate getJdbcTemplate(String key)
public static DataSource getDataSource(String key)
Copyright © 2023. All rights reserved.