Class DataSchema

java.lang.Object
io.vertx.tp.atom.modeling.builtin.DataSchema
All Implemented Interfaces:
io.horizon.specification.app.HApp, io.horizon.specification.modeler.HLinkage, io.horizon.specification.typed.TJson, Schema, Serializable

public class DataSchema extends Object implements Schema
See Also:
  • Constructor Details

    • DataSchema

      public DataSchema(String namespace)
  • Method Details

    • getFieldNames

      public Set<String> getFieldNames()
      读取当前Schema的所有字段名
      Specified by:
      getFieldNames in interface Schema
    • identifier

      public String identifier()
      Specified by:
      identifier in interface io.horizon.specification.app.HApp
    • namespace

      public String namespace()
      Specified by:
      namespace in interface io.horizon.specification.app.HApp
    • getTable

      public String getTable()
      Specified by:
      getTable in interface Schema
    • getFieldByColumn

      public MField getFieldByColumn(String column)
      Specified by:
      getFieldByColumn in interface Schema
    • getField

      public MField getField(String field)
      Specified by:
      getField in interface Schema
    • getColumnNames

      public Set<String> getColumnNames()
      读取所有列名
      Specified by:
      getColumnNames in interface Schema
    • getPrimaryKeys

      public List<MField> getPrimaryKeys()
      读取当前Schema中所有主键
      Specified by:
      getPrimaryKeys in interface Schema
    • getEntity

      public MEntity getEntity()
      读取当前Schema关联实体
      Specified by:
      getEntity in interface Schema
    • getFields

      public MField[] getFields()
      读取字段集合
      Specified by:
      getFields in interface Schema
    • getKeys

      public MKey[] getKeys()
      读取键集合
      Specified by:
      getKeys in interface Schema
    • file

      public String file()
      Specified by:
      file in interface io.horizon.specification.app.HApp
    • connect

      public void connect(String key)
      Specified by:
      connect in interface io.horizon.specification.modeler.HLinkage
    • toJson

      public io.vertx.core.json.JsonObject toJson()
      Specified by:
      toJson in interface io.horizon.specification.typed.TJson
    • fromFile

      public void fromFile(String file)
      Specified by:
      fromFile in interface io.horizon.specification.typed.TJson
    • fromJson

      public void fromJson(io.vertx.core.json.JsonObject json)
      Specified by:
      fromJson in interface io.horizon.specification.typed.TJson
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object