|
|
@ -36,10 +36,16 @@ public class DesignCacheManager { |
|
|
|
return cacheTableData.get() != null; |
|
|
|
return cacheTableData.get() != null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 获取数据集缓存 |
|
|
|
|
|
|
|
*/ |
|
|
|
public static ThreadLocal<Map<String, TableData>> getCacheTableData() { |
|
|
|
public static ThreadLocal<Map<String, TableData>> getCacheTableData() { |
|
|
|
return cacheTableData; |
|
|
|
return cacheTableData; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* 设置数据集缓存 |
|
|
|
|
|
|
|
*/ |
|
|
|
public static void setCacheTableData(ThreadLocal<Map<String, TableData>> cacheTableData) { |
|
|
|
public static void setCacheTableData(ThreadLocal<Map<String, TableData>> cacheTableData) { |
|
|
|
DesignCacheManager.cacheTableData = cacheTableData; |
|
|
|
DesignCacheManager.cacheTableData = cacheTableData; |
|
|
|
} |
|
|
|
} |
|
|
|