Package | Description |
---|---|
org.dromara.hutool.db.sql |
SQL语句和Statement构建封装
|
org.dromara.hutool.db.sql.filter |
提供SQL过滤器封装
|
Modifier and Type | Class and Description |
---|---|
class |
NamedSql
使用命名占位符的SQL,例如:select * from table where field1=:name1
支持的占位符格式为: 1、:name 2、@name 3、? |
Modifier and Type | Method and Description |
---|---|
BoundSql |
BoundSql.addParam(Object paramValue)
增加参数
|
BoundSql |
BoundSql.setParams(List<Object> params)
设置参数列表
|
BoundSql |
BoundSql.setSql(String sql)
设置SQL语句
|
Modifier and Type | Method and Description |
---|---|
void |
SqlLogFilter.filter(Connection conn,
BoundSql boundSql,
boolean returnGeneratedKey) |
void |
SqlFilterChain.filter(Connection conn,
BoundSql boundSql,
boolean returnGeneratedKey) |
void |
SqlFilter.filter(Connection conn,
BoundSql boundSql,
boolean returnGeneratedKey)
过滤
|
Copyright © 2025. All rights reserved.