Package io.vertx.tp.optic.modeling
Class JsonSchema
- java.lang.Object
-
- io.vertx.tp.optic.modeling.JsonSchema
-
- All Implemented Interfaces:
Schema,Json,Serializable
public class JsonSchema extends Object implements Schema
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonSchema(String namespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Stringfile()voidfromFile(String file)voidfromJson(io.vertx.core.json.JsonObject json)Set<String>getColumnNames()读取所有列名MEntitygetEntity()读取当前Schema关联实体MFieldgetField(String field)MFieldgetFieldByColumn(String column)Set<String>getFieldNames()读取当前Schema的所有字段名MField[]getFields()读取字段集合MKey[]getKeys()读取键集合List<MField>getPrimaryKeys()读取当前Schema中所有主键StringgetTable()inthashCode()Stringidentifier()Stringnamespace()voidrelation(String key)io.vertx.core.json.JsonObjecttoJson()StringtoString()
-
-
-
Constructor Detail
-
JsonSchema
public JsonSchema(String namespace)
-
-
Method Detail
-
getFieldNames
public Set<String> getFieldNames()
读取当前Schema的所有字段名- Specified by:
getFieldNamesin interfaceSchema
-
identifier
public String identifier()
-
namespace
public String namespace()
-
getFieldByColumn
public MField getFieldByColumn(String column)
- Specified by:
getFieldByColumnin interfaceSchema
-
getColumnNames
public Set<String> getColumnNames()
读取所有列名- Specified by:
getColumnNamesin interfaceSchema
-
getPrimaryKeys
public List<MField> getPrimaryKeys()
读取当前Schema中所有主键- Specified by:
getPrimaryKeysin interfaceSchema
-
file
public String file()
-
relation
public void relation(String key)
-
fromJson
public void fromJson(io.vertx.core.json.JsonObject json)
-
-