Index

B C D E G H I J M O P Q R S T U V X 
All Classes and Interfaces|All Packages|Serialized Form

B

batchUpdate(String, Collection<Object[]>, int) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
批量更新
batchUpdate(String, Collection<Object[]>, int) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
批量更新
batchUpdate(String, Collection<Object[]>, int, boolean) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
批量更新
batchUpdate(String, Collection<Object[]>, int, boolean) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
批量更新
BatchUpdateErrorInfo - Class in xyz.zhouxy.jdbc
记录批量更新操作中某个批次的执行错误信息。
BatchUpdateErrorInfo(int, Throwable) - Constructor for class xyz.zhouxy.jdbc.BatchUpdateErrorInfo
构造一个批量更新错误信息实例。
BatchUpdateResult - Class in xyz.zhouxy.jdbc
批量更新结果
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
 
buildParams(Object...) - Static method in class xyz.zhouxy.jdbc.ParamBuilder
 

C

commitIfTrue(ThrowingPredicate<JdbcOperations, E>) - Method in class xyz.zhouxy.jdbc.TransactionTemplate
执行事务。
COMPLETED_WITH_ERRORS - Enum constant in enum xyz.zhouxy.jdbc.BatchUpdateStatus
执行完成,部分批次失败

D

DefaultBeanRowMapper<T> - Class in xyz.zhouxy.jdbc
DefaultBeanRowMapper

E

EMPTY_OBJECT_ARRAY - Static variable in class xyz.zhouxy.jdbc.ParamBuilder
 
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

I

INTERRUPTED - Enum constant in enum xyz.zhouxy.jdbc.BatchUpdateStatus
中断

J

JdbcOperations - Interface in xyz.zhouxy.jdbc
JdbcOperations

M

mapRow(ResultSet, int) - Method in class xyz.zhouxy.jdbc.DefaultBeanRowMapper
mapRow(ResultSet, int) - Method in interface xyz.zhouxy.jdbc.RowMapper
 

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

Q

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

R

ResultHandler<T> - Interface in xyz.zhouxy.jdbc
ResultHandler
RowMapper<T> - Interface in xyz.zhouxy.jdbc
RowMapper

S

SimpleJdbcTemplate - Class in xyz.zhouxy.jdbc
JDBC 操作的模板类,对原生 JDBC 进行轻量封装,提供查询、更新、批量操作等便捷方法。
SimpleJdbcTemplate(DataSource) - Constructor for class xyz.zhouxy.jdbc.SimpleJdbcTemplate
 
SUCCESS - Enum constant in enum xyz.zhouxy.jdbc.BatchUpdateStatus
成功

T

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
 
TransactionException - Exception Class in xyz.zhouxy.jdbc
事务异常
TransactionException(String, Throwable) - Constructor for exception class xyz.zhouxy.jdbc.TransactionException
事务异常
TransactionException(Throwable) - Constructor for exception class xyz.zhouxy.jdbc.TransactionException
事务异常
TransactionTemplate - Class in xyz.zhouxy.jdbc
事务模板,提供事务执行能力。
TransactionTemplate(DataSource) - Constructor for class xyz.zhouxy.jdbc.TransactionTemplate
 

U

update(String) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行更新操作
update(String, Object[]) - 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, Object[], RowMapper<T>) - Method in class xyz.zhouxy.jdbc.SimpleJdbcTemplate
执行 SQL 并返回生成的 keys
updateAndReturnKeys(String, RowMapper<T>) - Method in interface xyz.zhouxy.jdbc.JdbcOperations
执行 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
 
B C D E G H I J M O P Q R S T U V X 
All Classes and Interfaces|All Packages|Serialized Form