Class MapIndexMapper

java.lang.Object
org.huiche.jdbc.mapper.index.MapIndexMapper
All Implemented Interfaces:
IndexMapper

public final class MapIndexMapper extends Object implements IndexMapper
Map的列下标映射
Author:
Maning
  • Constructor Details

  • Method Details

    • get

      public Integer get(String table, String column)
      Description copied from interface: IndexMapper
      通过table和column获取下标,用于实体类查询
      Specified by:
      get in interface IndexMapper
      Parameters:
      table - 表名
      column - 列名
      Returns:
      下标
    • get

      public String get(int columnIndex, BiFunction<String,String,String> keyNamingStrategy)
      Description copied from interface: IndexMapper
      通过下标和命名, 用于map查询
      Specified by:
      get in interface IndexMapper
      Parameters:
      columnIndex - 列下标
      keyNamingStrategy - map的key命名策略(传入table和column,返回key)
      Returns:
      map的key