/**
 * Copyright (c) 2015-2022, Michael Yang 杨福海 (fuhai999@gmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package io.jboot.db.model;

public class CPI {

    public static boolean hasAnyJoinEffective(JbootModel model){
        return model.hasAnyJoinEffective();
    }
}

@@ -666,141 +666,1176 @@
 l;%0A%0A
-public class CPI %7B%0A%0A    public static boolean hasAnyJoinEffective(JbootModel model)%7B%0A        return model.hasAnyJoinEffective();%0A    %7D
+import com.jfinal.plugin.activerecord.Config;%0Aimport io.jboot.db.dialect.JbootDialect;%0A%0Apublic class CPI %7B%0A%0A    public static boolean hasAnyJoinEffective(JbootModel dao) %7B%0A        return dao.hasAnyJoinEffective();%0A    %7D%0A%0A%0A    public static boolean hasColumn(JbootModel dao, String columnLabel) %7B%0A        return dao._hasColumn(columnLabel);%0A    %7D%0A%0A%0A    public static JbootDialect getJbootDialect(JbootModel dao) %7B%0A        return dao._getDialect();%0A    %7D%0A%0A%0A    public static Config getModelConfig(JbootModel dao) %7B%0A        return dao._getConfig();%0A    %7D%0A%0A%0A    public static %3CM%3E M loadByCache(JbootModel dao, Object... idValues) %7B%0A        return (M) dao.loadByCache(idValues);%0A    %7D%0A%0A%0A    public static void safeDeleteCache(JbootModel dao, Object... idValues) %7B%0A        dao.safeDeleteCache(idValues);%0A    %7D%0A%0A%0A    public static Class%3C?%3E safeDeleteCache(JbootModel dao) %7B%0A        return dao._getPrimaryType();%0A    %7D%0A%0A%0A    public static String buildIdCacheName(JbootModel dao, String name) %7B%0A        return dao.buildIdCacheName(name);%0A    %7D%0A%0A%0A    public static String buildIdCacheKey(JbootModel dao, Object... idValues) %7B%0A        return dao.buildIdCacheKey(idValues);%0A    %7D%0A%0A
 %0A%7D%0A

add Model.CPI methods