java.lang.Object
org.miaixz.bus.mapper.builder.SchemaSqlBuilder
- All Implemented Interfaces:
Comparable<org.miaixz.bus.core.Order>,org.miaixz.bus.core.Order,ORDER,SqlScriptWrapper
注解方式的
SqlScriptWrapper,提供基于注解的 SQL 脚本包装功能- Since:
- Java 17+
- Author:
- Kimi Liu
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.miaixz.bus.mapper.parsing.SqlScriptWrapper
SqlScriptWrapper.Holder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Annotation[]注解数组protected final Object注解的目标对象(类、方法或参数)protected final ElementType注解应用的目标元素类型(类、方法、参数等) -
Constructor Summary
ConstructorsConstructorDescriptionSchemaSqlBuilder(Object target, ElementType type, Annotation[] annotations) 构造函数,初始化注解包装器 -
Method Summary
Modifier and TypeMethodDescriptionboolean判断两个对象是否相等获取注解数组getParameterName(Parameter parameter) 获取参数名称获取注解的目标对象getType()获取注解的目标元素类型inthashCode()计算对象的哈希值Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.core.Order
compareTo, orderMethods inherited from interface org.miaixz.bus.mapper.parsing.SqlScriptWrapper
wrap
-
Field Details
-
type
注解应用的目标元素类型(类、方法、参数等) -
target
注解的目标对象(类、方法或参数) -
annotations
注解数组
-
-
Constructor Details
-
SchemaSqlBuilder
构造函数,初始化注解包装器- Parameters:
target- 目标对象type- 元素类型annotations- 注解数组
-
-
Method Details
-
getType
获取注解的目标元素类型- Returns:
- 元素类型
-
getTarget
获取注解的目标对象- Returns:
- 目标对象
-
getAnnotations
获取注解数组- Returns:
- 注解数组
-
getParameterName
获取参数名称- Parameters:
parameter- 参数对象- Returns:
- 参数名称
-
equals
判断两个对象是否相等 -
hashCode
public int hashCode()计算对象的哈希值
-