From 9996797a080af182115406d29fef8f30b24f4a5d Mon Sep 17 00:00:00 2001 From: Suomm <1474983351@qq.com> Date: Wed, 2 Oct 2024 11:46:40 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E4=BC=98=E5=8C=96=20TypeHandlerObj?= =?UTF-8?q?ect=20=E7=B1=BB=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core/mybatis/TypeHandlerObject.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/TypeHandlerObject.java b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/TypeHandlerObject.java index ee7c986d..6c8e1266 100644 --- a/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/TypeHandlerObject.java +++ b/mybatis-flex-core/src/main/java/com/mybatisflex/core/mybatis/TypeHandlerObject.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2025, Mybatis-Flex (fuhai999@gmail.com). + * Copyright (c) 2022-2024, Mybatis-Flex (fuhai999@gmail.com). *
* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,13 @@ import java.io.Serializable; import java.sql.PreparedStatement; import java.sql.SQLException; +/** + * 类型处理器包装。 + * + * @author michael + * @author 王帅 + */ +@SuppressWarnings({"rawtypes", "unchecked"}) public class TypeHandlerObject implements Serializable { private final TypeHandler typeHandler; @@ -38,6 +45,11 @@ public class TypeHandlerObject implements Serializable { typeHandler.setParameter(ps, i, value, jdbcType); } + /** + * 获取未处理的原始值。 + * + * @return 原始值 + */ public Object getValue() { return value; }