public class NCMBBase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
mClassName |
protected org.json.JSONObject |
mFields |
protected java.util.List<java.lang.String> |
mIgnoreKeys
ignore key list
|
protected java.util.HashSet<java.lang.String> |
mUpdateKeys |
Modifier and Type | Method and Description |
---|---|
java.util.List |
allKeys()
Get list all keys of object
|
boolean |
containsKey(java.lang.String key)
confirm whether the specified field is present
|
protected org.json.JSONObject |
createUpdateJsonData() |
NCMBAcl |
getAcl() |
boolean |
getBoolean(java.lang.String key)
get boolean value from given key
|
java.lang.String |
getClassName() |
java.util.Date |
getCreateDate() |
java.util.Date |
getDate(java.lang.String key)
Get Date object from given key
|
double |
getDouble(java.lang.String key)
get double value from given key
|
android.location.Location |
getGeolocation(java.lang.String key)
Get Location object from given key
|
<T extends NCMBBase> |
getIncludeObject(java.lang.String key)
Get NCMBObject if given key data include pointer object data
|
int |
getInt(java.lang.String key)
get int value from given key
|
org.json.JSONArray |
getJSONArray(java.lang.String key)
Get JSONArray from given key
|
org.json.JSONObject |
getJSONObject(java.lang.String key)
Get JSONObject from given key
|
java.util.List |
getList(java.lang.String key)
Get List object from given key
|
long |
getLong(java.lang.String key)
get long value from given key
|
java.util.Map |
getMap(java.lang.String key)
Get Map object from given key
|
java.lang.String |
getObjectId() |
java.lang.String |
getString(java.lang.String key)
get string value from given key
|
java.util.Date |
getUpdateDate() |
void |
put(java.lang.String key,
boolean value)
put boolean value to given key
|
void |
put(java.lang.String key,
java.util.Date value)
put Date value to given key
|
void |
put(java.lang.String key,
double value)
put double value to given key
|
void |
put(java.lang.String key,
float value)
put float value to given key
|
void |
put(java.lang.String key,
int value)
put int value to given key
|
void |
put(java.lang.String key,
org.json.JSONArray value)
put JSONArray value to given key
|
void |
put(java.lang.String key,
org.json.JSONObject value)
put JSONObject value to given key
|
void |
put(java.lang.String key,
java.util.List value)
put List value to given key
|
void |
put(java.lang.String key,
android.location.Location value)
put Location value to given key
|
void |
put(java.lang.String key,
long value)
put long value to given key
|
void |
put(java.lang.String key,
java.util.Map value)
put Map value to given key
|
void |
put(java.lang.String key,
NCMBObject object)
put NCMBObject value to given key as pointer object
|
void |
put(java.lang.String key,
java.lang.String value)
put string value to given key
|
void |
remove(java.lang.String key)
remove the value for the specified key
|
void |
setAcl(NCMBAcl acl) |
protected void |
setAclFromInternal(NCMBAcl acl) |
protected void |
setCreateDate(java.util.Date createDate) |
void |
setObjectId(java.lang.String objectId) |
protected void |
setUpdateDate(java.util.Date updateDate) |
protected java.lang.String mClassName
protected org.json.JSONObject mFields
protected java.util.HashSet<java.lang.String> mUpdateKeys
protected java.util.List<java.lang.String> mIgnoreKeys
public void setObjectId(java.lang.String objectId) throws NCMBException
NCMBException
public java.lang.String getObjectId()
protected void setCreateDate(java.util.Date createDate) throws NCMBException
NCMBException
public java.util.Date getCreateDate() throws NCMBException
NCMBException
protected void setUpdateDate(java.util.Date updateDate) throws NCMBException
NCMBException
public java.util.Date getUpdateDate() throws NCMBException
NCMBException
protected void setAclFromInternal(NCMBAcl acl) throws NCMBException
NCMBException
public void setAcl(NCMBAcl acl) throws NCMBException
NCMBException
public NCMBAcl getAcl()
public java.lang.String getClassName()
public void remove(java.lang.String key) throws NCMBException
key
- field name for remove the valueNCMBException
public boolean containsKey(java.lang.String key)
key
- field name for confirmprotected org.json.JSONObject createUpdateJsonData() throws org.json.JSONException
org.json.JSONException
public void put(java.lang.String key, java.lang.String value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
public void put(java.lang.String key, boolean value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, int value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
public void put(java.lang.String key, long value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, float value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, double value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, java.util.Date value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, android.location.Location value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, org.json.JSONObject value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, org.json.JSONArray value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, java.util.Map value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, java.util.List value) throws NCMBException
key
- field name for put the valuevalue
- value to putNCMBException
- exception from NIFCLOUD mobile backendpublic void put(java.lang.String key, NCMBObject object) throws NCMBException
key
- field name for put the valueobject
- NCMBObject to put as pointerNCMBException
- exception from NIFCLOUD mobile backendpublic java.lang.String getString(java.lang.String key)
key
- field name to get the valuepublic boolean getBoolean(java.lang.String key)
key
- field name to get the valuepublic int getInt(java.lang.String key)
key
- field name to get the valuepublic long getLong(java.lang.String key)
key
- field name to get the valuepublic double getDouble(java.lang.String key)
key
- field name to get the valuepublic java.util.Date getDate(java.lang.String key)
key
- key name for getting objectpublic android.location.Location getGeolocation(java.lang.String key)
key
- key name for getting objectpublic org.json.JSONObject getJSONObject(java.lang.String key)
key
- key name for getting objectpublic org.json.JSONArray getJSONArray(java.lang.String key)
key
- key name for getting objectpublic java.util.List getList(java.lang.String key)
key
- key name for getting objectpublic java.util.Map getMap(java.lang.String key)
key
- key name for getting objectpublic <T extends NCMBBase> T getIncludeObject(java.lang.String key)
T
- type parameterkey
- key name for getting include objectpublic java.util.List allKeys()