de.greenrobot.dao.query.Query.forCurrentThread()方法的使用及代码示例

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

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

Query.forCurrentThread介绍

暂无

代码示例

代码示例来源:origin: GuoFeilong/LifeHelper

/** Internal query to resolve the "planNodes" to-many relationship of RouteLineNodeTable. */
public List<PlanNodeTable> _queryRouteLineNodeTable_PlanNodes(Long typeID) {
  synchronized (this) {
    if (routeLineNodeTable_PlanNodesQuery == null) {
      QueryBuilder<PlanNodeTable> queryBuilder = queryBuilder();
      queryBuilder.where(Properties.TypeID.eq(null));
      routeLineNodeTable_PlanNodesQuery = queryBuilder.build();
    }
  }
  Query<PlanNodeTable> query = routeLineNodeTable_PlanNodesQuery.forCurrentThread();
  query.setParameter(0, typeID);
  return query.list();
}

代码示例来源:origin: leftcoding/GankLy

/** Internal query to resolve the "orders" to-many relationship of Customer. */
public List<Order> _queryCustomer_Orders(long customerId) {
  synchronized (this) {
    if (customer_OrdersQuery == null) {
      QueryBuilder<Order> queryBuilder = queryBuilder();
      queryBuilder.where(Properties.CustomerId.eq(null));
      queryBuilder.orderRaw("T.'DATE' ASC");
      customer_OrdersQuery = queryBuilder.build();
    }
  }
  Query<Order> query = customer_OrdersQuery.forCurrentThread();
  query.setParameter(0, customerId);
  return query.list();
}

代码示例来源:origin: org.greenrobot/greendao-encryption

break;
case QueryList:
  operation.result = ((Query) operation.parameter).forCurrentThread().list();
  break;
case QueryUnique:
  operation.result = ((Query) operation.parameter).forCurrentThread().unique();
  break;
case DeleteByKey:

代码示例来源:origin: de.greenrobot/greendao

break;
case QueryList:
  operation.result = ((Query) operation.parameter).forCurrentThread().list();
  break;
case QueryUnique:
  operation.result = ((Query) operation.parameter).forCurrentThread().unique();
  break;
case DeleteByKey:

相关文章