这是我的代码,但无效。
public List<User> getAllButOne(final User user) {
List<User> results = null;
this.users.dropIndex(user.getUserId());
DBCursor cursor = this.users.find()
results = getUsersFromCursor(cursor, USER_ID_KEY);
return results;
}