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