public abstract class JdbcWorkspaceFactory extends Object implements IWorkspaceFactory
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
poolInitialSize
连接池初始化连接数
|
protected Integer |
poolMaxActive
连接池内最大活跃连接数
|
protected Integer |
poolMaxWait
连接池获取连接时最大等待时间,单位毫秒
|
protected Integer |
poolMinIdle
连接池最小空闲连接数
|
protected Boolean |
poolTestOnBorrow
申请连接时检测连接是否有效
|
| Constructor and Description |
|---|
JdbcWorkspaceFactory() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, openWorkspaceprotected Integer poolMaxActive
protected Integer poolInitialSize
protected Integer poolMinIdle
protected Integer poolMaxWait
protected Boolean poolTestOnBorrow
public static JdbcWorkspace openWorkspace(DataSource dataSource)
dataSource - SQLExceptionprotected abstract JdbcWorkspace openWorkspace(Connection connection, String url, String userName, Map options)
public IFeatureWorkspace createWorkspace(String url, String userName, String password, Map options)
IWorkspaceFactorycreateWorkspace in interface IWorkspaceFactoryurl - 连接字符串userName - 用户名password - 密码options - 其他参数protected void initPoolParams(JdbcWorkspace jdbcWorkspace)
jdbcWorkspace - public Integer getPoolMaxActive()
public IWorkspaceFactory setPoolMaxActive(Integer poolMaxActive)
public Integer getPoolInitialSize()
public IWorkspaceFactory setPoolInitialSize(Integer poolInitialSize)
poolInitialSize - public Integer getPoolMinIdle()
public IWorkspaceFactory setPoolMinIdle(Integer poolMinIdle)
poolMinIdle - public Boolean getPoolTestOnBorrow()
public Integer getPoolMaxWait()
public IWorkspaceFactory setPoolMaxWait(Integer poolMaxWait)
poolMaxWait - public IWorkspaceFactory setPoolTestOnBorrow(Boolean poolTestOnBorrow)
poolTestOnBorrow - Copyright © 2025. All rights reserved.