Skip navigation links
A B C D E G H J M N O P Q R S T U V X 

A

accept(T) - Method in interface xyz.zhouxy.jdbc.ThrowingConsumer
对给定参数执行此操作。
AssertTools - Class in xyz.zhouxy.jdbc.util
断言工具 本工具类不封装过多判断逻辑,鼓励充分使用项目中的工具类进行逻辑判断。

B

batchUpdate(String, Collection<Object[]>, int) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
批量更新 跑批过程中发生异常即中断操作,并返回结果。
batchUpdate(String, Collection<Object[]>, int, boolean) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
批量更新 当无法获取所更新的行数时,对应位置的更新行数将被设置为 JdbcOperationSupport.UNKNOWN_COUNT
batchUpdate(String, Collection<Object[]>, int) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
批量更新 跑批过程中发生异常即中断操作,并返回结果。
batchUpdate(String, Collection<Object[]>, int, boolean) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
批量更新 当无法获取所更新的行数时,对应位置的更新行数将被设置为 JdbcOperationSupport.UNKNOWN_COUNT
BatchUpdateErrorInfo - Class in xyz.zhouxy.jdbc
记录批量更新操作中某个批次的执行错误信息。
BatchUpdateErrorInfo(int, Throwable) - Constructor for class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
构造一个批量更新错误信息实例。
BatchUpdateResult - Class in xyz.zhouxy.jdbc
批量更新结果 封装 batchUpdate 操作的执行结果,包含: 整体执行状态 BatchUpdateStatus 批次统计信息(总数据量、批次数、成功/失败/剩余批次数) 各批次的更新结果及各错误批次的异常信息
BatchUpdateStatus - Enum in xyz.zhouxy.jdbc
批量更新状态 用于表示批量更新操作的整体执行状态
beanRowMapper(Class<T>) - Static method in interface xyz.zhouxy.jdbc.RowMapper
默认实现的将 ResultSet 转换为 Java Bean 的 RowMapper
beanRowMapper(Class<T>, Map<String, String>) - Static method in interface xyz.zhouxy.jdbc.RowMapper
默认实现的将 ResultSet 转换为 Java Bean 的 RowMapper
buildBatchParams(Collection<T>, Function<T, Object[]>) - Static method in class xyz.zhouxy.jdbc.ParamBuilder
批量构建参数列表 将集合中的每个元素通过 func 映射为 Object[], 最终返回 List<Object[]>,用于 batchUpdate 批量操作。
buildParams(Object...) - Static method in class xyz.zhouxy.jdbc.ParamBuilder
构建 SQL 参数数组 将传入的参数转换为 Object[],用于 PreparedStatement 的参数填充。

C

camelToSnake(String) - Static method in class xyz.zhouxy.jdbc.util.NamingTools
将小驼峰命名转换为小写下划线命名(snake_case)。
checkArgument(boolean) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查实参
checkArgument(boolean, String) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查实参
checkArgument(boolean, Supplier<String>) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查实参
checkArgument(boolean, String, Object...) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查实参
checkArgumentNotNull(T) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判断入参不为 null
checkArgumentNotNull(T, String) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判断入参不为 null
checkArgumentNotNull(T, Supplier<String>) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判断入参不为 null
checkArgumentNotNull(T, String, Object...) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判断入参不为 null
checkCondition(boolean, Supplier<T>) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
当条件不满足时抛出异常。
checkNotNull(T) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判空
checkNotNull(T, String) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判空
checkNotNull(T, Supplier<String>) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判空
checkNotNull(T, String, Object...) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
判空
checkState(boolean) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查状态
checkState(boolean, String) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查状态
checkState(boolean, Supplier<String>) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查状态
checkState(boolean, String, Object...) - Static method in class xyz.zhouxy.jdbc.util.AssertTools
检查状态
commitIfTrue(ThrowingPredicate<JdbcOperations, E>) - Method in class xyz.zhouxy.jdbc.TransactionTemplate
执行事务。

D

DefaultBeanRowMapper<T> - Class in xyz.zhouxy.jdbc
DefaultBeanRowMapper 将 ResultSet 转换为 Java Bean 的 RowMapper 的基础实现。

E

EMPTY_OBJECT_ARRAY - Static variable in class xyz.zhouxy.jdbc.ParamBuilder
空参数数组常量 用于表示无参数的 SQL 操作
execute(ThrowingConsumer<JdbcOperations, E>) - Method in class xyz.zhouxy.jdbc.TransactionTemplate
执行事务。

G

getAllErrorsInfo() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取所有出错的批次的错误信息
getBatchCount() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取批次数量
getBatchIndex() - Method in class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
获取批次索引
getBatchSize() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取批次大小
getBatchUpdateErrorInfo(int) - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取指定批次的错误信息
getCause() - Method in class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
获取错误原因
getCode() - Method in enum xyz.zhouxy.jdbc.BatchUpdateStatus
获取状态码
getCompleteBatchCount() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取完成批次数量
getDescription() - Method in enum xyz.zhouxy.jdbc.BatchUpdateStatus
获取状态的可读描述
getErrorBatchCount() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取错误批次数量
getErrorBatchIndexes() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取所有出错的批次号
getErrorType() - Method in class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
获取错误类型
getRemainingBatchCount() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取剩余批次数量 一般是中断后未执行的批次数量
getStatus() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取批量更新状态
getSuccessBatchCount() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取成功批次数量
getTotal() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取总数据量
getUpdateCounts(int) - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
获取指定批次更新结果

H

handle(ResultSet) - Method in interface xyz.zhouxy.jdbc.ResultHandler
ResultSet 转换为指定类型的对象
HASH_MAP_MAPPER - Static variable in interface xyz.zhouxy.jdbc.RowMapper
每一行数据转换为 HashMap 注:如果两个属性映射到同一列名,后者静默覆盖前者。

J

JdbcOperations - Interface in xyz.zhouxy.jdbc
JdbcOperations 定义 JdbcTemplate 的 API

M

mapRow(ResultSet, int) - Method in class xyz.zhouxy.jdbc.DefaultBeanRowMapper
mapRow(ResultSet, int) - Method in interface xyz.zhouxy.jdbc.RowMapper
 
mapToList(RowMapper<T>) - Static method in interface xyz.zhouxy.jdbc.ResultHandler
创建一个返回 ListResultHandler,将 ResultSet 中的每一行 通过指定的 RowMapper 映射为对象,最终收集为一个 List

N

NamingTools - Class in xyz.zhouxy.jdbc.util
字符串工具

O

of(Class<T>) - Static method in class xyz.zhouxy.jdbc.DefaultBeanRowMapper
创建一个 DefaultBeanRowMapper
of(Class<T>, Map<String, String>) - Static method in class xyz.zhouxy.jdbc.DefaultBeanRowMapper
创建一个 DefaultBeanRowMapper

P

ParamBuilder - Class in xyz.zhouxy.jdbc
ParamBuilder JDBC 参数构造器,将数据转换为 Object[] 类型,以传给 PreparedStatement

Q

query(String, Object[], ResultHandler<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,并按照自定义处理逻辑对结果进行处理,将结果转换为指定类型并返回
query(String, ResultHandler<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,并按照自定义处理逻辑对结果进行处理,将结果转换为指定类型并返回
query(String, Object[], ResultHandler<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,并按照自定义处理逻辑对结果进行处理,将结果转换为指定类型并返回
queryBoolean(String) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
查询第一行第一列并转换为 boolean
queryBoolean(String, Object[]) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
查询第一行第一列并转换为 boolean
queryBoolean(String, Object[]) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
查询第一行第一列并转换为 boolean
queryFirst(String, Object[], RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将查询结果的第一行数据按照指定逻辑进行处理,返回 Optional
queryFirst(String, Object[], Class<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
查询第一行第一列,并转换为指定类型
queryFirst(String, Object[]) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将第一行数据转为 Map<String, Object>
queryFirst(String, RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将查询结果的第一行数据按照指定逻辑进行处理,返回 Optional
queryFirst(String, Class<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
查询第一行第一列,并转换为指定类型
queryFirst(String) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将第一行数据转为 Map<String, Object>
queryFirst(String, Object[], RowMapper<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,将查询结果的第一行数据按照指定逻辑进行处理,返回 Optional
queryFirst(String, Object[], Class<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
查询第一行第一列,并转换为指定类型
queryFirst(String, Object[]) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,将第一行数据转为 Map<String, Object>
queryList(String, Object[], RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将查询结果的每一行数据按照指定逻辑进行处理,返回结果列表
queryList(String, Object[], Class<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,返回结果映射为指定的类型。
queryList(String, Object[]) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,每一行数据映射为 Map<String, Object>,返回结果列表
queryList(String, RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,将查询结果的每一行数据按照指定逻辑进行处理,返回结果列表
queryList(String, Class<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,返回结果映射为指定的类型。
queryList(String) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行查询,每一行数据映射为 Map<String, Object>,返回结果列表
queryList(String, Object[], RowMapper<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,将查询结果的每一行数据按照指定逻辑进行处理,返回结果列表
queryList(String, Object[], Class<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,返回结果映射为指定的类型。
queryList(String, Object[]) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行查询,每一行数据映射为 Map<String, Object>,返回结果列表

R

ResultHandler<T> - Interface in xyz.zhouxy.jdbc
ResultHandler 处理 ResultSet
RowMapper<T> - Interface in xyz.zhouxy.jdbc
RowMapper ResultSet 中每一行数据的处理逻辑。

S

SimpleJdbcTemplate - Class in xyz.zhouxy.jdbc
JDBC 操作的模板类,对原生 JDBC 进行轻量封装,提供查询、更新、批量操作等便捷方法。
SimpleJdbcTemplate(DataSource) - Constructor for class xyz.zhouxy.jdbc.SimpleJdbcTemplate
构造一个 SimpleJdbcTemplate 实例

T

test(T) - Method in interface xyz.zhouxy.jdbc.ThrowingPredicate
对给定参数执行此谓词判断。
ThrowingConsumer<T,E extends Exception> - Interface in xyz.zhouxy.jdbc
可抛出受检异常的函数式接口。
ThrowingPredicate<T,E extends Exception> - Interface in xyz.zhouxy.jdbc
可抛出受检异常的谓词函数式接口。
toString() - Method in class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
返回该错误信息的字符串表示,包含批次索引、错误类型和错误消息。
toString() - Method in class xyz.zhouxy.jdbc.BatchUpdateResult
toString() - Method in enum xyz.zhouxy.jdbc.BatchUpdateStatus
transaction() - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
获取事务模板 返回的 TransactionTemplate 与当前模板共享同一个 DataSource
TransactionException - Exception in xyz.zhouxy.jdbc
事务异常 用于包装事务执行过程中发生的原始异常
TransactionException(Throwable) - Constructor for exception xyz.zhouxy.jdbc.TransactionException
事务异常
TransactionException(String, Throwable) - Constructor for exception xyz.zhouxy.jdbc.TransactionException
事务异常
TransactionTemplate - Class in xyz.zhouxy.jdbc
事务模板,提供事务执行能力。
TransactionTemplate(DataSource) - Constructor for class xyz.zhouxy.jdbc.TransactionTemplate
构造一个 TransactionTemplate 实例

U

update(String, Object[]) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行更新操作
update(String) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行更新操作
update(String, Object[]) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行更新操作
updateAndReturnKeys(String, Object[], RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行 SQL 并返回生成的 keys
updateAndReturnKeys(String, RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行 SQL 并返回生成的 keys
updateAndReturnKeys(String, Object[], RowMapper<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行 SQL 并返回生成的 keys

V

valueOf(String) - Static method in enum xyz.zhouxy.jdbc.BatchUpdateStatus
Returns the enum constant of this type with the specified name.
values() - Static method in enum xyz.zhouxy.jdbc.BatchUpdateStatus
Returns an array containing the constants of this enum type, in the order they are declared.

X

xyz.zhouxy.jdbc - package xyz.zhouxy.jdbc
 
xyz.zhouxy.jdbc.util - package xyz.zhouxy.jdbc.util
 
A B C D E G H J M N O P Q R S T U V X 

Copyright © 2026. All rights reserved.