Interface Pin


  • public interface Pin
    统一读取组件的接口,新版的数据访问层在 yml 文件中仅定义 Pin 插件就可以了, 其他所有插件通过 Pin 来实现门面转化的动作,包括读取其他组件的应用都透过 Pin来完成, Pin 中还可以检查数据库连接。
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      AoBuilder getBuilder​(io.vertx.up.commune.config.Database database)
      读取发布器专用接口 发布器执行时,必须知道是针对哪个Database进行发布
      AoDao getDao​(io.vertx.up.commune.config.Database database)
      读取数据处理访问器专用接口 用于Crud等各种复杂操作
      static Pin getInstance()
      根据配置文件读取连接器
    • Method Detail

      • getInstance

        static Pin getInstance()
        根据配置文件读取连接器
      • getBuilder

        AoBuilder getBuilder​(io.vertx.up.commune.config.Database database)
        读取发布器专用接口 发布器执行时,必须知道是针对哪个Database进行发布
      • getDao

        AoDao getDao​(io.vertx.up.commune.config.Database database)
        读取数据处理访问器专用接口 用于Crud等各种复杂操作