public class ConnectionManagerFactory extends Object
Title: 常用代码打包
Description: Central manager of database connections. All methods are static so that they can be easily accessed throughout the classes in the database package.
This class also provides a set of utility methods that abstract out operations that may not work on all databases such as setting the max number or rows that a query should return.
Copyright: Copyright (c) 2006
Company: www.justdos.net
ConnectionProvider| 限定符和类型 | 字段和说明 |
|---|---|
static String |
THREAD_LOCK |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addProviderConfig(ProviderConfig config) |
static Connection |
getConnection(String configKey) |
ConnectionManager |
getConnectionManager(ProviderConfig schema) |
ConnectionManager |
getConnectionManager(String configKey) |
Map |
getConnectionManagers() |
static ConnectionManagerFactory |
getInstance() |
ProviderConfig |
getProviderConfig(String configKey) |
public Map getConnectionManagers()
public static ConnectionManagerFactory getInstance()
public void addProviderConfig(ProviderConfig config)
public ProviderConfig getProviderConfig(String configKey)
public ConnectionManager getConnectionManager(ProviderConfig schema)
public ConnectionManager getConnectionManager(String configKey)
public static Connection getConnection(String configKey)
Copyright © 2023 onecode. All rights reserved.