public class JsonSchema extends Object implements Schema
| Constructor and Description |
|---|
JsonSchema(String namespace) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
file() |
void |
fromFile(String file) |
void |
fromJson(io.vertx.core.json.JsonObject json) |
Set<String> |
getColumnNames()
读取所有列名
|
MEntity |
getEntity()
读取当前Schema关联实体
|
MField |
getField(String field) |
MField |
getFieldByColumn(String column) |
Set<String> |
getFieldNames()
读取当前Schema的所有字段名
|
MField[] |
getFields()
读取字段集合
|
MKey[] |
getKeys()
读取键集合
|
List<MField> |
getPrimaryKeys()
读取当前Schema中所有主键
|
String |
getTable() |
int |
hashCode() |
String |
identifier() |
String |
namespace() |
void |
relation(String key) |
io.vertx.core.json.JsonObject |
toJson() |
String |
toString() |
public JsonSchema(String namespace)
public Set<String> getFieldNames()
读取当前Schema的所有字段名
getFieldNames in interface Schemapublic String identifier()
public String namespace()
public MField getFieldByColumn(String column)
getFieldByColumn in interface Schemapublic Set<String> getColumnNames()
读取所有列名
getColumnNames in interface Schemapublic List<MField> getPrimaryKeys()
读取当前Schema中所有主键
getPrimaryKeys in interface Schemapublic String file()
public void relation(String key)
public io.vertx.core.json.JsonObject toJson()
public void fromFile(String file)
public void fromJson(io.vertx.core.json.JsonObject json)
Copyright © 2021. All rights reserved.