我正在使用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和指南,但找不到所需的解決方案。幫助將非常感謝!
你有沒有發現這個任何解決方案 – 2013-06-06 03:55:58