com.avaje.ebean.Query.findMap()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(173)

本文整理了Java中com.avaje.ebean.Query.findMap方法的一些代码示例,展示了Query.findMap的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.findMap方法的具体详情如下:
包路径:com.avaje.ebean.Query
类名称:Query
方法名:findMap

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.

Query<Product> query = Ebean.createQuery(Product.class); 
query.setMapKey("sku"); 
Map<?, Product> map = query.findMap();

[中]

代码示例

代码示例来源:origin: org.avaje.ebean/ebean

@Override
public <K> Map<K, T> findMap() {
 return query.findMap();
}

代码示例来源:origin: org.actframework/act-ebean-java7

@Override
public <K> Map<K, MODEL_TYPE> findMap() {
  return qReadOnly.findMap();
}

代码示例来源:origin: org.avaje/ebean

public <K> Map<K, T> findMap(String keyProperty, Class<K> keyType) {
 return query.findMap(keyProperty, keyType);
}

代码示例来源:origin: org.avaje.ebean/ebean

@Override
public <K> Map<K, T> findMap() {
 return rootQuery.findMap();
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public Map<?, T> findMap() {
  return rootQuery.findMap();
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public <K> Map<K, T> findMap(String keyProperty, Class<K> keyType) {
 return query.findMap(keyProperty, keyType);
}

代码示例来源:origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public Map<?, T> findMap() {
 return query.findMap();
}

代码示例来源:origin: org.avaje/ebean

public Map<?, T> findMap() {
 return query.findMap();
}

代码示例来源:origin: org.avaje/ebean

public Map<?, T> findMap() {
  return rootQuery.findMap();
}

代码示例来源:origin: com.typesafe.play/play-java-ebean

/**
 * Executes the query and returns the results as a map of the objects.
 */
public <K> Map<K,T> findMap(String a, Class<K> b) {
  return query().findMap(a,b);
}

代码示例来源:origin: com.typesafe.play/play-java-ebean

/**
 * Executes the query and returns the results as a map of objects.
 */
public Map<?,T> findMap() {
  return query().findMap();
}

相关文章