public class DriverUtil extends Object
Constructor and Description |
---|
DriverUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
identifyDriver(Connection conn)
识别JDBC驱动名
|
static String |
identifyDriver(DataSource ds)
识别JDBC驱动名
|
static String |
identifyDriver(String nameContainsProductInfo)
通过JDBC URL等信息识别JDBC驱动名
|
public static String identifyDriver(String nameContainsProductInfo)
nameContainsProductInfo
- 包含数据库标识的字符串DialectFactory.identifyDriver(String)
public static String identifyDriver(DataSource ds)
ds
- 数据源public static String identifyDriver(Connection conn) throws DbRuntimeException
conn
- 数据库连接对象DbRuntimeException
- SQL异常包装,获取元数据信息失败Copyright © 2024. All rights reserved.