Module bus.mapper

Interface SqlSourceEnhancer

All Known Implementing Classes:
PrimaryKeyEnhancer

public interface SqlSourceEnhancer
支持定制化处理 SqlSource 的接口
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SqlSourceEnhancer
    默认 SPI 实现,加载并依次调用所有 KeySqlSource 实现类
  • Method Summary

    Modifier and Type
    Method
    Description
    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
  • Field Details

    • SPI

      static final SqlSourceEnhancer 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 - 原始 SqlSource
      entity - 实体表信息
      ms - MappedStatement
      context - 调用方法上下文
      Returns:
      定制化后的 SqlSource