@Component public class TableScriptFactory extends Object
| 构造器和说明 |
|---|
TableScriptFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
TableScriptInterface |
instance()
获取默认数据源的表结构脚本实例
使用"default"作为默认数据源名称调用instance方法
|
TableScriptInterface |
instance(String datasource)
获取表结构脚本实例
根据数据源名称获取对应的数据库类型,并创建相应的表脚本生成器实例
|
public TableScriptInterface instance(String datasource) throws SQLException
datasource - 数据源名称SQLException - 当无法识别数据库类型时抛出异常public TableScriptInterface instance() throws SQLException
SQLException - 当无法识别数据库类型时抛出异常Copyright © 2025. All rights reserved.