@Test public void fetchObject_non_object_id() { NCMBObject obj = new NCMBObject("testClass"); try { obj.fetch(); } catch (NCMBException e) { Assert.assertEquals(NCMBException.REQUIRED, e.getCode()); } }
public void fetch() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); NCMBObject obj = objService.fetchObject(mClassName, getObjectId()); mFields = obj.mFields; }
NCMBObject extends NCMBBase { public void fetch() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); NCMBObject obj = objService.fetchObject(mClassName, getObjectId()); mFields = obj.mFields; } }
NCMBObject extends NCMBBase { public void fetch() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); NCMBObject obj = objService.fetchObject(mClassName, getObjectId()); mFields = obj.mFields; } NCMBObject(String className);   NCMBObject(String className, JSONObject params); }
NCMBObject extends NCMBBase { public void fetch() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); NCMBObject obj = objService.fetchObject(mClassName, getObjectId()); mFields = obj.mFields; } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects); }
NCMBObject extends NCMBBase { public void fetch() throws NCMBException { NCMBObjectService objService = (NCMBObjectService) NCMB.factory(NCMB.ServiceType.OBJECT); NCMBObject obj = objService.fetchObject(mClassName, getObjectId()); mFields = obj.mFields; } NCMBObject(String className);   NCMBObject(String className, JSONObject params); void save(); void saveInBackground(final DoneCallback callback); void fetch(); void fetchInBackground(); void fetchInBackground(final FetchCallback callback); void deleteObject(); void deleteObjectInBackground(final DoneCallback callback); void increment(String key, int amount); void addToList(String key, List objects); void addUniqueToList(String key, List objects); void removeFromList(String key, List objects);  }