OWNER - 拥有者对象类型DATASOURCE_CONFIG - 数据源配置对象类型CONNECTION - 连接对象类型@Ignored public interface IDataSourceAdapter<OWNER,DATASOURCE_CONFIG extends IDataSourceConfig,CONNECTION> extends IDestroyable
| Modifier and Type | Method and Description |
|---|---|
CONNECTION |
getConnection()
获取连接对象
|
DATASOURCE_CONFIG |
getDataSourceConfig()
获取数据源配置
|
OWNER |
getOwner()
获取所属持久化模块
|
void |
initialize(OWNER owner,
DATASOURCE_CONFIG dataSourceConfig)
数据源适配器初始化
|
boolean |
initializeIfNeed()
判断是否已初始化, 若尚未执行则尝试初始化
|
closevoid initialize(OWNER owner, DATASOURCE_CONFIG dataSourceConfig) throws Exception
owner - 所属拥有者对象dataSourceConfig - 数据源配置参数Exception - 可能产生的异常boolean initializeIfNeed()
throws Exception
Exception - 可能产生的异常OWNER getOwner()
DATASOURCE_CONFIG getDataSourceConfig()
CONNECTION getConnection() throws Exception
Exception - 可能产生的异常Copyright © 2022. All rights reserved.