类 CozeRuntimeHolder

    • 构造器详细资料

      • CozeRuntimeHolder

        public CozeRuntimeHolder()
    • 方法详细资料

      • temporary

        public DataRuntime temporary​(Object client,
                                     String database,
                                     DriverAdapter adapter)
                              throws Exception
        注册数据源 子类覆盖 生成简单的DataRuntime不注册到spring
        参数:
        client - 数据源, 如DruidDataSource, MongoClient, es.CozeClient
        database - 数据库, jdbc类型数据源不需要
        adapter - 如果确认数据库类型可以提供如 new MySQLAdapter(), 如果不提供则根据ds检测
        返回:
        DataRuntime
        抛出:
        Exception - 异常 Exception
      • destroy

        public boolean destroy​(String key)