本文整理了Java中io.ebean.Query.findMap
方法的一些代码示例,展示了Query.findMap
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findMap
方法的具体详情如下:
包路径:io.ebean.Query
类名称:Query
方法名:findMap
[英]Execute the query returning a map of the objects.
This query will execute against the EbeanServer that was used to create it.
You can use setMapKey() so specify the property values to be used as keys on the map. If one is not specified then the id property is used.
Map map =
[中]执行返回对象映射的查询。
此查询将针对用于创建它的EbeanServer执行。
可以使用setMapKey(),以便指定要在地图上用作键的属性值。如果未指定,则使用id属性。
Map map =
代码示例来源:origin: ebean-orm/ebean
@Override
public <K> Map<K, T> findMap() {
return query.findMap();
}
代码示例来源:origin: ebean-orm/ebean
@Override
public <K> Map<K, T> findMap() {
return rootQuery.findMap();
}
代码示例来源:origin: io.ebean/ebean
@Override
public <K> Map<K, T> findMap() {
return query.findMap();
}
代码示例来源:origin: org.actframework/act-ebean
@Override
public <K> Map<K, MODEL_TYPE> findMap() {
return qReadOnly.findMap();
}
代码示例来源:origin: io.ebean/ebean
@Override
public <K> Map<K, T> findMap() {
return rootQuery.findMap();
}
代码示例来源:origin: org.actframework/act-ebean2
@Override
public <K> Map<K, MODEL_TYPE> findMap() {
return q.findMap();
}
代码示例来源:origin: io.ebean/ebean-querybean
/**
* Execute the query returning a map of the objects.
* <p>
* This query will execute against the EbeanServer that was used to create it.
* </p>
* <p>
* You can use setMapKey() or asMapKey() to specify the property to be used as keys
* on the map. If one is not specified then the id property is used.
* </p>
* <p>
* <pre>{@code
*
* Map<String, Product> map =
* new QProduct()
* .sku.asMapKey()
* .findMap();
*
* }</pre>
*
* @see Query#findMap()
*/
@Nonnull
public <K> Map<K, T> findMap() {
return query.findMap();
}
代码示例来源:origin: icode/ameba
/**
* Executes the query and returns the results as a map of objects.
*
* @return a {@link java.util.Map} object.
*/
@SuppressWarnings("unchecked")
public <M extends T> Map<?, M> findMap() {
return (Map<?, M>) query().findMap();
}
内容来源于网络,如有侵权,请联系作者删除!