- All Known Implementing Classes:
PrimaryKeyEnhancer
public interface SqlSourceEnhancer
支持定制化处理
SqlSource 的接口- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SqlSourceEnhancer默认 SPI 实现,加载并依次调用所有 KeySqlSource 实现类 -
Method Summary
-
Field Details
-
SPI
默认 SPI 实现,加载并依次调用所有 KeySqlSource 实现类
-
-
Method Details
-
customize
org.apache.ibatis.mapping.SqlSource customize(org.apache.ibatis.mapping.SqlSource sqlSource, TableMeta entity, org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.builder.annotation.ProviderContext context) 定制化处理 SqlSource- Parameters:
sqlSource- 原始 SqlSourceentity- 实体表信息ms- MappedStatementcontext- 调用方法上下文- Returns:
- 定制化后的 SqlSource
-