public class AbstractModel extends Object implements Model
| Constructor and Description |
|---|
AbstractModel() |
| Modifier and Type | Method and Description |
|---|---|
Model |
cache(xapi.util.api.SuccessHandler<Model> callback) |
Model |
child(String propName) |
void |
clear() |
protected AbstractModel |
createNew() |
Model |
delete(xapi.util.api.SuccessHandler<Model> callback) |
protected Map<String,Object> |
emptyMap() |
Model |
flush()
Anything cached will be persisted,
and on any platforms which can block, this method will block until
all persistence operations have completed.
|
ModelKey |
getKey() |
Map<String,Object> |
getProperties() |
<T> T |
getProperty(String key) |
<T> T |
getProperty(String key,
T dflt) |
Model |
load(xapi.util.api.SuccessHandler<Model> callback,
boolean useCache) |
Model |
parent() |
Model |
persist(xapi.util.api.SuccessHandler<Model> callback) |
Model |
removeProperty(String key) |
Model |
setProperty(String key,
Object value) |
public <T> T getProperty(String key)
getProperty in interface Modelpublic <T> T getProperty(String key, T dflt)
getProperty in interface Modelpublic Map<String,Object> getProperties()
getProperties in interface Modelpublic Model setProperty(String key, Object value)
setProperty in interface Modelprotected AbstractModel createNew()
public Model removeProperty(String key)
removeProperty in interface Modelpublic Model flush()
ModelCopyright © 2012-2013 The Internet Party. All Rights Reserved.