提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.common.constant; |
X |
2 |
|
|
3 |
/** |
|
4 |
* 代码生成通用常量 |
|
5 |
* |
|
6 |
* @author dl |
|
7 |
*/ |
|
8 |
public interface GenConstants { |
|
9 |
/** |
|
10 |
* 单表(增删改查) |
|
11 |
*/ |
|
12 |
String TPL_CRUD = "crud"; |
|
13 |
|
|
14 |
/** |
|
15 |
* 树表(增删改查) |
|
16 |
*/ |
|
17 |
String TPL_TREE = "tree"; |
|
18 |
|
|
19 |
/** |
|
20 |
* 主子表(增删改查) |
|
21 |
*/ |
|
22 |
String TPL_SUB = "sub"; |
|
23 |
|
|
24 |
/** |
|
25 |
* 树编码字段 |
|
26 |
*/ |
|
27 |
String TREE_CODE = "treeCode"; |
|
28 |
|
|
29 |
/** |
|
30 |
* 树父编码字段 |
|
31 |
*/ |
|
32 |
String TREE_PARENT_CODE = "treeParentCode"; |
|
33 |
|
|
34 |
/** |
|
35 |
* 树名称字段 |
|
36 |
*/ |
|
37 |
String TREE_NAME = "treeName"; |
|
38 |
|
|
39 |
/** |
|
40 |
* 上级菜单ID字段 |
|
41 |
*/ |
|
42 |
String PARENT_MENU_ID = "parentMenuId"; |
|
43 |
|
|
44 |
/** |
|
45 |
* 上级菜单名称字段 |
|
46 |
*/ |
|
47 |
String PARENT_MENU_NAME = "parentMenuName"; |
|
48 |
|
|
49 |
/** |
|
50 |
* 数据库字符串类型 |
|
51 |
*/ |
|
52 |
String[] COLUMNTYPE_STR = {"char", "varchar", "nvarchar", "varchar2"}; |
|
53 |
|
|
54 |
/** |
|
55 |
* 数据库文本类型 |
|
56 |
*/ |
|
57 |
String[] COLUMNTYPE_TEXT = {"tinytext", "text", "mediumtext", "longtext"}; |
|
58 |
|
|
59 |
/** |
|
60 |
* 数据库时间类型 |
|
61 |
*/ |
|
62 |
String[] COLUMNTYPE_TIME = {"datetime", "time", "date", "timestamp"}; |
|
63 |
|
|
64 |
/** |
|
65 |
* 数据库数字类型 |
|
66 |
*/ |
|
67 |
String[] COLUMNTYPE_NUMBER = {"tinyint", "smallint", "mediumint", "int", "number", "integer", |
|
68 |
"bit", "bigint", "float", "double", "decimal"}; |
|
69 |
|
|
70 |
/** |
|
71 |
* BO对象 不需要添加字段 |
|
72 |
*/ |
|
73 |
String[] COLUMNNAME_NOT_ADD = {"create_by", "create_time", "del_flag", "update_by", |
|
74 |
"update_time", "version"}; |
|
75 |
|
|
76 |
/** |
|
77 |
* BO对象 不需要编辑字段 |
|
78 |
*/ |
|
79 |
String[] COLUMNNAME_NOT_EDIT = {"create_by", "create_time", "del_flag", "update_by", |
|
80 |
"update_time", "version"}; |
|
81 |
|
|
82 |
/** |
|
83 |
* VO对象 不需要返回字段 |
|
84 |
*/ |
|
85 |
String[] COLUMNNAME_NOT_LIST = {"create_by", "create_time", "del_flag", "update_by", |
|
86 |
"update_time", "version"}; |
|
87 |
|
|
88 |
/** |
|
89 |
* BO对象 不需要查询字段 |
|
90 |
*/ |
|
91 |
String[] COLUMNNAME_NOT_QUERY = {"id", "create_by", "create_time", "del_flag", "update_by", |
|
92 |
"update_time", "remark", "version"}; |
|
93 |
|
|
94 |
/** |
|
95 |
* Entity基类字段 |
|
96 |
*/ |
|
97 |
String[] BASE_ENTITY = {"createBy", "createTime", "updateBy", "updateTime"}; |
|
98 |
|
|
99 |
/** |
|
100 |
* Tree基类字段 |
|
101 |
*/ |
|
102 |
String[] TREE_ENTITY = {"parentName", "parentId", "children"}; |
|
103 |
|
|
104 |
/** |
|
105 |
* 文本框 |
|
106 |
*/ |
|
107 |
String HTML_INPUT = "input"; |
|
108 |
|
|
109 |
/** |
|
110 |
* 文本域 |
|
111 |
*/ |
|
112 |
String HTML_TEXTAREA = "textarea"; |
|
113 |
|
|
114 |
/** |
|
115 |
* 下拉框 |
|
116 |
*/ |
|
117 |
String HTML_SELECT = "select"; |
|
118 |
|
|
119 |
/** |
|
120 |
* 单选框 |
|
121 |
*/ |
|
122 |
String HTML_RADIO = "radio"; |
|
123 |
|
|
124 |
/** |
|
125 |
* 复选框 |
|
126 |
*/ |
|
127 |
String HTML_CHECKBOX = "checkbox"; |
|
128 |
|
|
129 |
/** |
|
130 |
* 日期控件 |
|
131 |
*/ |
|
132 |
String HTML_DATETIME = "datetime"; |
|
133 |
|
|
134 |
/** |
|
135 |
* 图片上传控件 |
|
136 |
*/ |
|
137 |
String HTML_IMAGE_UPLOAD = "imageUpload"; |
|
138 |
|
|
139 |
/** |
|
140 |
* 文件上传控件 |
|
141 |
*/ |
|
142 |
String HTML_FILE_UPLOAD = "fileUpload"; |
|
143 |
|
|
144 |
/** |
|
145 |
* 富文本控件 |
|
146 |
*/ |
|
147 |
String HTML_EDITOR = "editor"; |
|
148 |
|
|
149 |
/** |
|
150 |
* 字符串类型 |
|
151 |
*/ |
|
152 |
String TYPE_STRING = "String"; |
|
153 |
|
|
154 |
/** |
|
155 |
* 整型 |
|
156 |
*/ |
|
157 |
String TYPE_INTEGER = "Integer"; |
|
158 |
|
|
159 |
/** |
|
160 |
* 长整型 |
|
161 |
*/ |
|
162 |
String TYPE_LONG = "Long"; |
|
163 |
|
|
164 |
/** |
|
165 |
* 浮点型 |
|
166 |
*/ |
|
167 |
String TYPE_DOUBLE = "Double"; |
|
168 |
|
|
169 |
/** |
|
170 |
* 高精度计算类型 |
|
171 |
*/ |
|
172 |
String TYPE_BIGDECIMAL = "BigDecimal"; |
|
173 |
|
|
174 |
/** |
|
175 |
* 时间类型 |
|
176 |
*/ |
|
177 |
String TYPE_DATE = "Date"; |
|
178 |
|
|
179 |
/** |
|
180 |
* 模糊查询 |
|
181 |
*/ |
|
182 |
String QUERY_LIKE = "LIKE"; |
|
183 |
|
|
184 |
/** |
|
185 |
* 相等查询 |
|
186 |
*/ |
|
187 |
String QUERY_EQ = "EQ"; |
|
188 |
|
|
189 |
/** |
|
190 |
* 需要 |
|
191 |
*/ |
|
192 |
String REQUIRE = "1"; |
|
193 |
} |