【发布时间】:2013-03-09 04:37:47
【问题描述】:
我正在为我的应用程序使用Parse。我想查询一个表,其列设置为指向其他表的指针。这是查询:
ParseQuery query = new ParseQuery("CategoryAttribute");
query.whereEqualTo("categoryId", categoryId);
query.findInBackground(new FindCallback() {
@Override
public void done(List<ParseObject> categoryAttributes, ParseException e) {
if (e == null) {
for (int i = 0; i < categoryAttributes.size(); i++){
String atributeCategoryId = categoryAttributes.get(i).getString("categoryId");
String attributeKey = categoryAttributes.get(i).getString("attributeKey");
String attributeValue = categoryAttributes.get(i).getString("attributeValue");
setCategoryAtributeRow(atributeCategoryId, attributeKey, attributeValue);
}
} else {
Log.d("score", "Error: " + e.getMessage());
}
}
});
所以categoryId 列是指向其他表的指针。其他列工作正常。
我试图扫描 API 和指南,但找不到所需的解决方案。帮助将不胜感激!
【问题讨论】:
-
你找到解决办法了吗
标签: java android parsing parse-platform