public class JsonModel extends Object implements Model
Ox专用模型: 1. 包含一个MModel 2. 包含该Model对应的MAttribute集合 3. 包含多个Schema
| Modifier and Type | Method and Description |
|---|---|
AoAttribute |
attribute(String attributeName) |
Model |
bind(Set<Schema> schemas) |
void |
bindDirect(Set<Schema> schemas) |
MAttribute |
dbAttribute(String attributeName) |
Set<MAttribute> |
dbAttributes() |
Set<MJoin> |
dbJoins() |
MModel |
dbModel() |
boolean |
equals(Object o) |
String |
file() |
void |
fromFile(String file) |
void |
fromJson(io.vertx.core.json.JsonObject json) |
int |
hashCode() |
String |
identifier() |
DataKey |
key() |
void |
key(DataKey key) |
String |
namespace() |
void |
relation(String key) |
Schema |
schema(String identifier) |
Set<Schema> |
schemata() |
io.vertx.core.json.JsonObject |
toJson() |
String |
toString() |
ModelType |
type() |
ConcurrentMap<String,Class<?>> |
typeCls() |
ConcurrentMap<String,io.vertx.up.commune.element.TypeField> |
types() |
io.vertx.up.commune.rule.RuleUnique |
unique() |
public JsonModel(String namespace)
public String identifier()
public ConcurrentMap<String,Class<?>> typeCls()
public String file()
public String namespace()
public DataKey key()
public void key(DataKey key)
public Set<MAttribute> dbAttributes()
dbAttributes in interface Modelpublic AoAttribute attribute(String attributeName)
public ConcurrentMap<String,io.vertx.up.commune.element.TypeField> types()
public MAttribute dbAttribute(String attributeName)
dbAttribute in interface Modelpublic void relation(String key)
public void fromFile(String file)
public io.vertx.up.commune.rule.RuleUnique unique()
public void fromJson(io.vertx.core.json.JsonObject json)
public io.vertx.core.json.JsonObject toJson()
Copyright © 2021. All rights reserved.