diff --git a/NOTICE b/NOTICE new file mode 100644 index 0000000..db204a7 --- /dev/null +++ b/NOTICE @@ -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. diff --git a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateErrorInfo.java b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateErrorInfo.java index ffefef6..8a1e038 100644 --- a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateErrorInfo.java +++ b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateErrorInfo.java @@ -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 + * @author ZhouXY */ public class BatchUpdateErrorInfo { diff --git a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateResult.java b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateResult.java index 2c7fad2..8b225d7 100644 --- a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateResult.java +++ b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateResult.java @@ -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 + * @author ZhouXY */ public class BatchUpdateResult { private final int total; diff --git a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateStatus.java b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateStatus.java index 3dfbf20..6ed2cee 100644 --- a/src/main/java/xyz/zhouxy/jdbc/BatchUpdateStatus.java +++ b/src/main/java/xyz/zhouxy/jdbc/BatchUpdateStatus.java @@ -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 + * @author ZhouXY */ public enum BatchUpdateStatus implements IWithIntCode { diff --git a/src/main/java/xyz/zhouxy/jdbc/DefaultBeanRowMapper.java b/src/main/java/xyz/zhouxy/jdbc/DefaultBeanRowMapper.java index 26faf48..2179386 100644 --- a/src/main/java/xyz/zhouxy/jdbc/DefaultBeanRowMapper.java +++ b/src/main/java/xyz/zhouxy/jdbc/DefaultBeanRowMapper.java @@ -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; *
  • 实际使用中还是建议针对目标类型自定义 {@link RowMapper}。
  • * *

    - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ public class DefaultBeanRowMapper implements RowMapper { diff --git a/src/main/java/xyz/zhouxy/jdbc/JdbcOperationSupport.java b/src/main/java/xyz/zhouxy/jdbc/JdbcOperationSupport.java index f60ebc4..ac1dded 100644 --- a/src/main/java/xyz/zhouxy/jdbc/JdbcOperationSupport.java +++ b/src/main/java/xyz/zhouxy/jdbc/JdbcOperationSupport.java @@ -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 基础操作 *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ class JdbcOperationSupport { diff --git a/src/main/java/xyz/zhouxy/jdbc/JdbcOperations.java b/src/main/java/xyz/zhouxy/jdbc/JdbcOperations.java index 926af18..891ba12 100644 --- a/src/main/java/xyz/zhouxy/jdbc/JdbcOperations.java +++ b/src/main/java/xyz/zhouxy/jdbc/JdbcOperations.java @@ -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 *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ public interface JdbcOperations { diff --git a/src/main/java/xyz/zhouxy/jdbc/ParamBuilder.java b/src/main/java/xyz/zhouxy/jdbc/ParamBuilder.java index dd5df95..309c42e 100644 --- a/src/main/java/xyz/zhouxy/jdbc/ParamBuilder.java +++ b/src/main/java/xyz/zhouxy/jdbc/ParamBuilder.java @@ -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} *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ public class ParamBuilder { diff --git a/src/main/java/xyz/zhouxy/jdbc/ResultHandler.java b/src/main/java/xyz/zhouxy/jdbc/ResultHandler.java index a3b7770..2c1f6e7 100644 --- a/src/main/java/xyz/zhouxy/jdbc/ResultHandler.java +++ b/src/main/java/xyz/zhouxy/jdbc/ResultHandler.java @@ -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} *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ @FunctionalInterface diff --git a/src/main/java/xyz/zhouxy/jdbc/RowMapper.java b/src/main/java/xyz/zhouxy/jdbc/RowMapper.java index 48b65c5..fea5af8 100644 --- a/src/main/java/xyz/zhouxy/jdbc/RowMapper.java +++ b/src/main/java/xyz/zhouxy/jdbc/RowMapper.java @@ -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} 中每一行数据的处理逻辑。 *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ @FunctionalInterface diff --git a/src/main/java/xyz/zhouxy/jdbc/SimpleJdbcTemplate.java b/src/main/java/xyz/zhouxy/jdbc/SimpleJdbcTemplate.java index d422dd3..1804948 100644 --- a/src/main/java/xyz/zhouxy/jdbc/SimpleJdbcTemplate.java +++ b/src/main/java/xyz/zhouxy/jdbc/SimpleJdbcTemplate.java @@ -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 的简单封装,方便数据库操作,支持事务,支持批量操作,支持自定义结果集映射 *

    * - * @author ZhouXY108 + * @author ZhouXY * @since 1.0.0 */ public class SimpleJdbcTemplate implements JdbcOperations { diff --git a/src/main/java/xyz/zhouxy/jdbc/TransactionException.java b/src/main/java/xyz/zhouxy/jdbc/TransactionException.java index 878bdbf..200e3e2 100644 --- a/src/main/java/xyz/zhouxy/jdbc/TransactionException.java +++ b/src/main/java/xyz/zhouxy/jdbc/TransactionException.java @@ -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; *

    * 用于包装事务执行过程中发生的原始异常 * - * @author ZhouXY108 + * @author ZhouXY */ public class TransactionException extends Exception { private static final long serialVersionUID = 87276230526383501L;