You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

44 lines
1.2 KiB

package com.insigma.service;
import com.insigma.entry.IndexObj;
import com.insigma.entry.TabColObj;
import org.springframework.util.Assert;
import java.util.List;
/**
* (Db 接口)
*
* @author zhangxianwei
* @since 2022/4/17 21:09
*/
public interface Database {
/***
* 清除 应用 缓存
* @param index 索引对象列表
* @return
*/
default boolean rebuildIndex(List<IndexObj> index) {
Assert.isNull(index, "未检测到索引对象列表!");
System.out.println(String.format("设置出参数:%s,但是未检测到实现应用调用此方法!", index.stream().getClass()));
return false;
}
/***
* 设置 数据库 大小
* @param size 设置大小值
* @return
*/
default boolean setDbSize(int size) {
System.out.printf("设置出参数:%d,但是未检测到实现应用调用此方法!", size);
return false;
}
/***
* 清除 应用 缓存
* @return
*/
default boolean cleanDbCache(List<String> sql, List<TabColObj> tabColObjs) {
System.out.println("进行缓存清除,但是未检测到实现应用调用此方法!");
return false;
}
}