Package io.mybatis.mapper.fn
Class Fn.FnName<T,R>
- java.lang.Object
-
- io.mybatis.mapper.fn.Fn.FnName<T,R>
-
- All Implemented Interfaces:
Fn<T,R>,Serializable,Function<T,R>
public static class Fn.FnName<T,R> extends Object implements Fn<T,R>
间接支持直接指定字段名或列名,避免只能通过方法引用使用- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface io.mybatis.mapper.fn.Fn
FN_CLASS_FIELD_MAP, FN_COLUMN_MAP
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rapply(Object o)Fn<T,R>in(Class<?> entityClass)当前字段所属的实体类,当实体存在继承关系时 父类的方法引用无法获取字段所属的实体类,需要通过该方法指定-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.mybatis.mapper.fn.Fn
toClassField, toColumn, toEntityColumn, toField
-
-