public class JsonModel extends Object implements Model
Ox专用模型: 1. 包含一个MModel 2. 包含该Model对应的MAttribute集合 3. 包含多个Schema
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
file() |
void |
fromFile(String file) |
void |
fromJson(io.vertx.core.json.JsonObject json) |
MAttribute |
getAttribute(String attributeName) |
Set<MAttribute> |
getAttributes() |
Set<MJoin> |
getJoins() |
DataKey |
getKey() |
MModel |
getModel() |
Schema |
getSchema(String identifier) |
Set<Schema> |
getSchemata() |
ModelType |
getType() |
io.vertx.up.commune.rule.RuleUnique |
getUnique() |
int |
hashCode() |
String |
identifier() |
String |
namespace() |
void |
onDatabase(Set<Schema> schemas) |
Model |
onJson(Set<Schema> schemas) |
void |
setKey(DataKey key) |
void |
setRelation(String key) |
io.vertx.core.json.JsonObject |
toJson() |
String |
toString() |
ConcurrentMap<String,Class<?>> |
types() |
public JsonModel(String namespace)
public String identifier()
public ConcurrentMap<String,Class<?>> types()
public String file()
public String namespace()
public Set<Schema> getSchemata()
getSchemata in interface Modelpublic DataKey getKey()
public void setKey(DataKey key)
public Set<MAttribute> getAttributes()
getAttributes in interface Modelpublic MAttribute getAttribute(String attributeName)
getAttribute in interface Modelpublic void setRelation(String key)
public void fromFile(String file)
public io.vertx.up.commune.rule.RuleUnique getUnique()
public void fromJson(io.vertx.core.json.JsonObject json)
public io.vertx.core.json.JsonObject toJson()
Copyright © 2020. All rights reserved.