public class NCMBObjectService extends NCMBService
NCMBService.RequestParams
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE_PATH |
mContext, mServicePath
Modifier and Type | Method and Description |
---|---|
int |
countObject(java.lang.String className,
org.json.JSONObject conditions)
Counting search object results from NIFCLOUD mobile backend
|
void |
countObjectInBackground(java.lang.String className,
org.json.JSONObject conditions,
CountCallback callback)
Counting search object results from NIFCLOUD mobile backend
|
org.json.JSONObject |
deleteObject(java.lang.String className,
java.lang.String objectId)
Deleting JSONObject data from NIFCLOUD mobile backend
|
void |
deleteObjectInBackground(java.lang.String className,
java.lang.String objectId,
ExecuteServiceCallback callback)
Deleting JSONObject data from NIFCLOUD mobile backend in background thread
|
NCMBObject |
fetchObject(java.lang.String className,
java.lang.String objectId)
Fetching JSONObject data from NIFCLOUD mobile backend
|
void |
fetchObjectInBackground(java.lang.String className,
java.lang.String objectId,
FetchCallback callback)
Fetching JSONObject data from NIFCLOUD mobile backend in background thread
|
org.json.JSONObject |
saveObject(java.lang.String className,
org.json.JSONObject params)
Saving JSONObject data to NIFCLOUD mobile backend
|
void |
saveObjectInBackground(java.lang.String className,
org.json.JSONObject params,
ExecuteServiceCallback callback)
Saving JSONObject data to NIFCLOUD mobile backend in background thread
|
java.util.List |
searchObject(java.lang.String className,
org.json.JSONObject conditions)
Searching JSONObject data from NIFCLOUD mobile backend
|
void |
searchObjectInBackground(java.lang.String className,
org.json.JSONObject conditions,
SearchObjectCallback callback)
Searching JSONObject data to NIFCLOUD mobile backend in background thread
|
org.json.JSONObject |
updateObject(java.lang.String className,
java.lang.String objectId,
org.json.JSONObject params)
Updating JSONObject data to NIFCLOUD mobile backend
|
void |
updateObjectInBackground(java.lang.String className,
java.lang.String objectId,
org.json.JSONObject params,
ExecuteServiceCallback callback)
Updating JSONObject data to NIFCLOUD mobile backend in background thread
|
sendRequest, sendRequest, sendRequest, sendRequest, sendRequestAsync, sendRequestAsync, sendRequestFile, sendRequestFileAsync
public static final java.lang.String SERVICE_PATH
public org.json.JSONObject saveObject(java.lang.String className, org.json.JSONObject params) throws NCMBException
className
- Datastore class name which to save the objectparams
- Saving Object dataNCMBException
- exception from NIFCLOUD mobile backendpublic void saveObjectInBackground(java.lang.String className, org.json.JSONObject params, ExecuteServiceCallback callback)
className
- Datastore class name which to save the objectparams
- saving Object datacallback
- callback for after object savepublic NCMBObject fetchObject(java.lang.String className, java.lang.String objectId) throws NCMBException
className
- Datastore class name which to fetch the objectobjectId
- Datastore object id of fetch dataNCMBException
- exception from NIFCLOUD mobile backendpublic void fetchObjectInBackground(java.lang.String className, java.lang.String objectId, FetchCallback callback)
className
- Datastore class name which to fetch the objectobjectId
- Datastore object id of fetch datacallback
- callback for after object fetchpublic org.json.JSONObject updateObject(java.lang.String className, java.lang.String objectId, org.json.JSONObject params) throws NCMBException
className
- Datastore class name which to update the objectobjectId
- Datastore object id of update dataparams
- JSONObject of update dataNCMBException
- exception from NIFCLOUD mobile backendpublic void updateObjectInBackground(java.lang.String className, java.lang.String objectId, org.json.JSONObject params, ExecuteServiceCallback callback)
className
- Datastore class name which to update the objectobjectId
- Datastore object id of update dataparams
- JSONObject of update datacallback
- callback for after object updatepublic org.json.JSONObject deleteObject(java.lang.String className, java.lang.String objectId) throws NCMBException
className
- Datastore class name which to delete the objectobjectId
- Datastore object id of delete dataNCMBException
- exception from NIFCLOUD mobile backendpublic void deleteObjectInBackground(java.lang.String className, java.lang.String objectId, ExecuteServiceCallback callback)
className
- Datastore class name which to delete the objectobjectId
- Datastore object id of delete datacallback
- callback for after object deletepublic java.util.List searchObject(java.lang.String className, org.json.JSONObject conditions) throws NCMBException
className
- Datastore class name which to search the objectconditions
- JSONObject of search conditionsNCMBException
- exception from NIFCLOUD mobile backendpublic void searchObjectInBackground(java.lang.String className, org.json.JSONObject conditions, SearchObjectCallback callback)
className
- Datastore class name which to search the objectconditions
- JSONObject of search conditionscallback
- callback for after object searchpublic int countObject(java.lang.String className, org.json.JSONObject conditions) throws NCMBException
className
- Datastore class name which to search the objectconditions
- JSONObject of search conditionsNCMBException
- exception from NIFCLOUD mobile backendpublic void countObjectInBackground(java.lang.String className, org.json.JSONObject conditions, CountCallback callback)
className
- Datastore class name which to search the objectconditions
- JSONObject of search conditionscallback
- callback for after object search and count data