懒羊羊
2024-01-31 e57a8990ae56f657a59c435a0613c5f7a8728003
提交 | 用户 | 时间
e57a89 1 package com.jcdm.generator.service;
2
3 import java.util.List;
4 import java.util.Map;
5 import com.jcdm.generator.domain.GenTable;
6
7 /**
8  * 业务 服务层
9  * 
10  * @author jc
11  */
12 public interface IGenTableService
13 {
14     /**
15      * 查询业务列表
16      * 
17      * @param genTable 业务信息
18      * @return 业务集合
19      */
20     public List<GenTable> selectGenTableList(GenTable genTable);
21
22     /**
23      * 查询据库列表
24      * 
25      * @param genTable 业务信息
26      * @return 数据库表集合
27      */
28     public List<GenTable> selectDbTableList(GenTable genTable);
29
30     /**
31      * 查询据库列表
32      * 
33      * @param tableNames 表名称组
34      * @return 数据库表集合
35      */
36     public List<GenTable> selectDbTableListByNames(String[] tableNames);
37
38     /**
39      * 查询所有表信息
40      * 
41      * @return 表信息集合
42      */
43     public List<GenTable> selectGenTableAll();
44
45     /**
46      * 查询业务信息
47      * 
48      * @param id 业务ID
49      * @return 业务信息
50      */
51     public GenTable selectGenTableById(Long id);
52
53     /**
54      * 修改业务
55      * 
56      * @param genTable 业务信息
57      * @return 结果
58      */
59     public void updateGenTable(GenTable genTable);
60
61     /**
62      * 删除业务信息
63      * 
64      * @param tableIds 需要删除的表数据ID
65      * @return 结果
66      */
67     public void deleteGenTableByIds(Long[] tableIds);
68
69     /**
70      * 导入表结构
71      * 
72      * @param tableList 导入表列表
73      */
74     public void importGenTable(List<GenTable> tableList);
75
76     /**
77      * 预览代码
78      * 
79      * @param tableId 表编号
80      * @return 预览数据列表
81      */
82     public Map<String, String> previewCode(Long tableId);
83
84     /**
85      * 生成代码(下载方式)
86      * 
87      * @param tableName 表名称
88      * @return 数据
89      */
90     public byte[] downloadCode(String tableName);
91
92     /**
93      * 生成代码(自定义路径)
94      * 
95      * @param tableName 表名称
96      * @return 数据
97      */
98     public void generatorCode(String tableName);
99
100     /**
101      * 同步数据库
102      * 
103      * @param tableName 表名称
104      */
105     public void synchDb(String tableName);
106
107     /**
108      * 批量生成代码(下载方式)
109      * 
110      * @param tableNames 表数组
111      * @return 数据
112      */
113     public byte[] downloadCode(String[] tableNames);
114
115     /**
116      * 修改保存参数校验
117      * 
118      * @param genTable 业务信息
119      */
120     public void validateEdit(GenTable genTable);
121 }