public class AbstractModel extends Object implements Model, PersistentModel, NestedModel
| Modifier and Type | Field and Description |
|---|---|
protected ModelKey |
key |
protected StringTo<Object> |
map |
protected Model |
parent |
| Constructor and Description |
|---|
AbstractModel() |
AbstractModel(String type) |
public AbstractModel()
public AbstractModel(String type)
public <T> T getProperty(String key)
getProperty in interface Modelpublic <T> T getProperty(String key, T dflt)
getProperty in interface Modelpublic Iterable<Map.Entry<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 child(String propName)
child in interface NestedModelpublic Model parent()
parent in interface NestedModelpublic Model cache(SuccessHandler<Model> callback)
cache in interface PersistentModelpublic Model persist(SuccessHandler<Model> callback)
persist in interface PersistentModelpublic Model delete(SuccessHandler<Model> callback)
delete in interface PersistentModelpublic Model load(SuccessHandler<Model> callback, boolean useCache)
load in interface PersistentModelpublic Model flush()
PersistentModelflush in interface PersistentModelpublic Class<?> getPropertyType(String key)
getPropertyType in interface Modelpublic String[] getPropertyNames()
getPropertyNames in interface Modelpublic static int hashCodeForModel(Model m)
public Model setKey(ModelKey key)
setKey in interface ModelModel.setKey(xapi.model.api.ModelKey)Copyright © December 07, 2012–2015 The Internet Party. All rights reserved.