本文整理了Java中de.greenrobot.dao.query.Query.forCurrentThread
方法的一些代码示例,展示了Query.forCurrentThread
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.forCurrentThread
方法的具体详情如下:
包路径:de.greenrobot.dao.query.Query
类名称: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:
内容来源于网络,如有侵权,请联系作者删除!