forked from plusone/simple-jdbc
docs: 更新版权信息和作者标识
This commit is contained in:
47
NOTICE
Normal file
47
NOTICE
Normal file
@@ -0,0 +1,47 @@
|
||||
Simple JDBC
|
||||
Copyright 2022-2026 ZhouXY
|
||||
|
||||
This product is licensed under the Apache License, Version 2.0.
|
||||
You may obtain a copy of the License at:
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
================================================================================
|
||||
Third-Party Dependencies
|
||||
================================================================================
|
||||
|
||||
1. plusone-commons (xyz.zhouxy.plusone:plusone-commons)
|
||||
Copyright ZhouXY
|
||||
Licensed under the Apache License, Version 2.0
|
||||
|
||||
2. Google Guava (com.google.guava:guava)
|
||||
Copyright (C) The Guava Authors
|
||||
Licensed under the Apache License, Version 2.0
|
||||
|
||||
3. JSR-305 Annotations (com.google.code.findbugs:jsr305)
|
||||
Copyright (C) FindBugs
|
||||
Licensed under the Apache License, Version 2.0
|
||||
|
||||
================================================================================
|
||||
Test Dependencies (Not included in distribution)
|
||||
================================================================================
|
||||
|
||||
4. JUnit Jupiter (org.junit.jupiter:junit-jupiter)
|
||||
Copyright 2015-2026 JUnit Team
|
||||
Licensed under the Eclipse Public License 2.0
|
||||
|
||||
5. Logback (ch.qos.logback:logback-classic)
|
||||
Copyright (C) 1999-2026, QOS.ch
|
||||
Licensed under the Eclipse Public License 1.0
|
||||
and GNU Lesser General Public License 2.1
|
||||
|
||||
6. H2 Database (com.h2database:h2)
|
||||
Copyright 1999-2026 H2 Database Project
|
||||
Licensed under the MPL 2.0 and EPL 1.0
|
||||
|
||||
================================================================================
|
||||
Notes
|
||||
================================================================================
|
||||
|
||||
- This project is a lightweight JDBC wrapper designed for legacy projects
|
||||
without ORM frameworks.
|
||||
- For learning and reference purposes only.
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,7 @@ package xyz.zhouxy.jdbc;
|
||||
/**
|
||||
* 批量更新错误信息
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
*/
|
||||
public class BatchUpdateErrorInfo {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +22,7 @@ import java.util.Map;
|
||||
/**
|
||||
* 批量更新结果
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
*/
|
||||
public class BatchUpdateResult {
|
||||
private final int total;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,7 +20,7 @@ import xyz.zhouxy.plusone.commons.base.IWithIntCode;
|
||||
/**
|
||||
* 批量更新状态
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
*/
|
||||
public enum BatchUpdateStatus implements IWithIntCode {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,7 +55,7 @@ import xyz.zhouxy.plusone.commons.annotation.StaticFactoryMethod;
|
||||
* <li>实际使用中还是建议针对目标类型自定义 {@link RowMapper}。</li>
|
||||
* </ul>
|
||||
* </p>
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class DefaultBeanRowMapper<T> implements RowMapper<T> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -46,7 +46,7 @@ import com.google.common.collect.Lists;
|
||||
* 提供静态方法,封装 JDBC 基础操作
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class JdbcOperationSupport {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,7 +32,7 @@ import javax.annotation.Nullable;
|
||||
* 定义 JdbcTemplate 的 API
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public interface JdbcOperations {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,7 +41,7 @@ import xyz.zhouxy.plusone.commons.util.OptionalTools;
|
||||
* JDBC 参数构造器,将数据转换为 {@code Object[]} 类型,以传给 {@link PreparedStatement}
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class ParamBuilder {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -26,7 +26,7 @@ import java.sql.SQLException;
|
||||
* 处理 {@link ResultSet}
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
* {@link ResultSet} 中每一行数据的处理逻辑。
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@FunctionalInterface
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022-2026 the original author or authors.
|
||||
* Copyright 2022-2026 ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,7 +37,7 @@ import xyz.zhouxy.plusone.commons.util.AssertTools;
|
||||
* 对 JDBC 的简单封装,方便数据库操作,支持事务,支持批量操作,支持自定义结果集映射
|
||||
* </p>
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public class SimpleJdbcTemplate implements JdbcOperations {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2026-present the original author or authors.
|
||||
* Copyright 2026-present ZhouXY
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +22,7 @@ package xyz.zhouxy.jdbc;
|
||||
* <p>
|
||||
* 用于包装事务执行过程中发生的原始异常
|
||||
*
|
||||
* @author ZhouXY108 <luquanlion@outlook.com>
|
||||
* @author ZhouXY
|
||||
*/
|
||||
public class TransactionException extends Exception {
|
||||
private static final long serialVersionUID = 87276230526383501L;
|
||||
|
||||
Reference in New Issue
Block a user