public class NCMBObject extends NCMBBase
mClassName, mFields, mIgnoreKeys, mUpdateKeys| Constructor and Description |
|---|
NCMBObject(java.lang.String className)
Constructor with class name
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToList(java.lang.String key,
java.util.List objects)
add objects to given key
this method is effective for the saved object that contains value of the specified key
|
void |
addUniqueToList(java.lang.String key,
java.util.List objects)
add objects if object is unique in the specified key
this method is effective for the saved object that contains value of the specified key
|
void |
deleteObject()
delete current NCMBObject from data store
|
void |
deleteObjectInBackground(DoneCallback callback)
delete current NCMBObject from data store asynchronously
|
void |
fetch()
fetch current NCMBObject data from data store
|
void |
fetchInBackground()
Get object in Background without callback
|
void |
fetchInBackground(FetchCallback callback)
fetch current NCMBObject data from data store asynchronously
|
void |
increment(java.lang.String key,
int amount)
increment the value of the specified key
this method is effective for the saved object that contains value of the specified key
|
void |
removeFromList(java.lang.String key,
java.util.List objects)
remove objects from array in the given key
this method is effective for the saved object that contains value of the specified key
|
void |
save()
save current NCMBObject to data store
|
void |
saveInBackground(DoneCallback callback)
save current NCMBObject to data store asynchronously
|
allKeys, containsKey, createUpdateJsonData, getAcl, getBoolean, getClassName, getCreateDate, getDate, getDouble, getGeolocation, getIncludeObject, getInt, getJSONArray, getJSONObject, getList, getLong, getMap, getObjectId, getString, getUpdateDate, put, put, put, put, put, put, put, put, put, put, put, put, put, remove, setAcl, setAclFromInternal, setCreateDate, setObjectId, setUpdateDatepublic NCMBObject(java.lang.String className)
className - class name for data storepublic void save()
throws NCMBException
NCMBException - exception from NIFCLOUD mobile backendpublic void saveInBackground(DoneCallback callback)
callback - callback after object savepublic void fetch()
throws NCMBException
NCMBException - exception from NIFCLOUD mobile backendpublic void fetchInBackground()
public void fetchInBackground(FetchCallback callback)
callback - callback after fetch datapublic void deleteObject()
throws NCMBException
NCMBException - exception from NIFCLOUD mobile backendpublic void deleteObjectInBackground(DoneCallback callback)
callback - callback after delete objectpublic void increment(java.lang.String key,
int amount)
throws NCMBException
key - field name to increment valueamount - increment amount numberNCMBException - exception from sdk internalpublic void addToList(java.lang.String key,
java.util.List objects)
throws NCMBException
key - field name to add objectsobjects - objects to addNCMBException - exception from sdk internalpublic void addUniqueToList(java.lang.String key,
java.util.List objects)
throws NCMBException
key - field name to add objectsobjects - objects to addNCMBException - exception from sdk internalpublic void removeFromList(java.lang.String key,
java.util.List objects)
throws NCMBException
key - field name to remove objectsobjects - objects to removeNCMBException - exception from sdk internal