Class MapIndexMapper
java.lang.Object
org.huiche.jdbc.mapper.index.MapIndexMapper
- All Implemented Interfaces:
IndexMapper
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MapIndexMapper
默认构造- Parameters:
metaData- rs元数据- Throws:
SQLException- sql异常
-
-
Method Details
-
get
Description copied from interface:IndexMapper通过table和column获取下标,用于实体类查询- Specified by:
getin interfaceIndexMapper- Parameters:
table- 表名column- 列名- Returns:
- 下标
-
get
Description copied from interface:IndexMapper通过下标和命名, 用于map查询- Specified by:
getin interfaceIndexMapper- Parameters:
columnIndex- 列下标keyNamingStrategy- map的key命名策略(传入table和column,返回key)- Returns:
- map的key
-