public interface MapWithKeyBasicMapper extends BaseBasicMapper
| 限定符和类型 | 方法和说明 |
|---|---|
default <ID extends Serializable,T> |
map(Class<T> entityType,
Collection<ID> ids)
以主键为key的查询
|
default <ID extends Serializable,T> |
map(Class<T> entityType,
ID... ids)
以主键为key的查询
|
default <T,K,ID extends Serializable> |
mapWithKey(GetterFun<T,K> mapKey,
Collection<ID> ids)
根据多个id查询结果转map
|
default <T,K> Map<K,T> |
mapWithKey(GetterFun<T,K> mapKey,
Consumer<Where> consumer)
根据多个id查询结果转map
|
default <T,K,ID extends Serializable> |
mapWithKey(GetterFun<T,K> mapKey,
ID... ids)
根据多个id查询结果转map
|
getBasicMapper$count, $countFromQuery, $cursor, $delete, $get, $getById, $list, $mapWithKey, $save, $saveEntity, $saveModel, $updatedefault <T,K,ID extends Serializable> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, ID... ids)
K - map的key的类型mapKey - map的keyids - idsdefault <T,K,ID extends Serializable> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, Collection<ID> ids)
K - map的key的类型mapKey - map的keyids - idsdefault <T,K> Map<K,T> mapWithKey(GetterFun<T,K> mapKey, Consumer<Where> consumer)
K - map的key的类型mapKey - map的keyconsumer - where consumerdefault <ID extends Serializable,T> Map<ID,T> map(Class<T> entityType, ID... ids)
ID - T - entityType - 实体类ids - 指定IDdefault <ID extends Serializable,T> Map<ID,T> map(Class<T> entityType, Collection<ID> ids)
ID - T - entityType - 实体类ids - 指定IDCopyright © 2025. All rights reserved.