Package | Description |
---|---|
cn.hutool.db |
Hutool-db是一个在JDBC基础上封装的数据库操作工具类,通过包装,使用ActiveRecord思想操作数据库。
在Hutool-db中,使用Entity(本质上是个Map)代替Bean来使数据库操作更加灵活,同时提供Bean和Entity的转换提供传统ORM的兼容支持。 |
cn.hutool.db.dialect |
数据库方言封装,包括数据库方言以及方言自动识别等
|
cn.hutool.db.meta |
JDBC数据表元数据信息封装,包括表结构、列信息的封装,入口为MetaUtil
|
cn.hutool.db.sql |
SQL语句和Statement构建封装
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractDb.checkTransactionSupported(Connection conn)
检查数据库是否支持事务,此项检查同一个数据源只检查一次,如果不支持抛出DbRuntimeException异常
|
Modifier and Type | Method and Description |
---|---|
static String |
DriverUtil.identifyDriver(Connection conn)
识别JDBC驱动名
|
Modifier and Type | Method and Description |
---|---|
static String[] |
MetaUtil.getColumnNames(ResultSet rs)
获得结果集的所有列名
|
Modifier and Type | Method and Description |
---|---|
String |
Query.getFirstTableName()
获得第一个表名
|
Copyright © 2021. All rights reserved.