Class DataModel

java.lang.Object
io.aeon.experiment.shape.AbstractHModel
io.vertx.tp.atom.modeling.builtin.DataModel
All Implemented Interfaces:
io.horizon.specification.app.HApp, io.horizon.specification.modeler.HLinkage, io.horizon.specification.modeler.HModel, io.horizon.specification.typed.TJson, Model, Serializable

public class DataModel extends io.aeon.experiment.shape.AbstractHModel implements Model
Ox专用模型: 1. 包含一个MModel 2. 包含该Model对应的MAttribute集合 3. 包含多个Schema
See Also:
  • Field Summary

    Fields inherited from class io.aeon.experiment.shape.AbstractHModel

    app, attributeMap, identifier, jsonFile, marker, reference, unique
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataModel(io.horizon.atom.app.KApp app)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(Set<Schema> schemas)
     
    void
    bindDirect(Set<Schema> schemas)
     
    void
     
    dbAttribute(String attributeName)
     
     
     
     
    void
    fromJson(io.vertx.core.json.JsonObject json)
     
    key()
     
    void
    key(DataKey key)
     
    protected ConcurrentMap<String,io.horizon.specification.modeler.HAttribute>
     
    protected io.aeon.experiment.rule.RuleUnique
     
    io.horizon.specification.modeler.HReference
     
     
    schema(String identifier)
     
    io.vertx.core.json.JsonObject
     
     
    protected boolean
     
    io.horizon.eon.em.modeler.ModelType
     

    Methods inherited from class io.aeon.experiment.shape.AbstractHModel

    app, attribute, attribute, equals, file, fromFile, hashCode, identifier, initialize, loadReference, namespace, rule, tag

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.horizon.specification.app.HApp

    file, identifier, namespace

    Methods inherited from interface io.horizon.specification.modeler.HModel

    app, attribute, attribute, rule, tag

    Methods inherited from interface io.horizon.specification.typed.TJson

    fromFile
  • Constructor Details

    • DataModel

      public DataModel(io.horizon.atom.app.KApp app)
  • Method Details

    • loadAttribute

      protected ConcurrentMap<String,io.horizon.specification.modeler.HAttribute> loadAttribute()
      Specified by:
      loadAttribute in class io.aeon.experiment.shape.AbstractHModel
    • reference

      public io.horizon.specification.modeler.HReference reference()
      Specified by:
      reference in interface io.horizon.specification.modeler.HModel
      Overrides:
      reference in class io.aeon.experiment.shape.AbstractHModel
    • trackable

      protected boolean trackable()
      Overrides:
      trackable in class io.aeon.experiment.shape.AbstractHModel
    • loadRule

      protected io.aeon.experiment.rule.RuleUnique loadRule()
      Specified by:
      loadRule in class io.aeon.experiment.shape.AbstractHModel
    • dbModel

      public MModel dbModel()
      Specified by:
      dbModel in interface Model
    • schema

      public Schema schema(String identifier)
      Specified by:
      schema in interface Model
    • schema

      public Set<Schema> schema()
      Specified by:
      schema in interface Model
    • key

      public DataKey key()
      Specified by:
      key in interface Model
    • key

      public void key(DataKey key)
      Specified by:
      key in interface Model
    • type

      public io.horizon.eon.em.modeler.ModelType type()
      Specified by:
      type in interface io.horizon.specification.modeler.HModel
    • dbAttributes

      public Set<MAttribute> dbAttributes()
      Specified by:
      dbAttributes in interface Model
    • dbAttribute

      public MAttribute dbAttribute(String attributeName)
      Specified by:
      dbAttribute in interface Model
    • bind

      public Model bind(Set<Schema> schemas)
      Specified by:
      bind in interface Model
    • dbJoins

      public Set<MJoin> dbJoins()
      Specified by:
      dbJoins in interface Model
    • connect

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

      public void bindDirect(Set<Schema> schemas)
      Specified by:
      bindDirect in interface Model
    • fromJson

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

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

      public String toString()
      Overrides:
      toString in class Object