提交 | 用户 | 时间
|
fd2207
|
1 |
package com.jcdm.common.constant; |
懒 |
2 |
|
|
3 |
/** |
|
4 |
* 代码生成通用常量 |
|
5 |
* |
|
6 |
* @author jc |
|
7 |
*/ |
|
8 |
public class GenConstants |
|
9 |
{ |
|
10 |
/** 单表(增删改查) */ |
|
11 |
public static final String TPL_CRUD = "crud"; |
|
12 |
|
|
13 |
/** 树表(增删改查) */ |
|
14 |
public static final String TPL_TREE = "tree"; |
|
15 |
|
|
16 |
/** 主子表(增删改查) */ |
|
17 |
public static final String TPL_SUB = "sub"; |
|
18 |
|
|
19 |
/** 树编码字段 */ |
|
20 |
public static final String TREE_CODE = "treeCode"; |
|
21 |
|
|
22 |
/** 树父编码字段 */ |
|
23 |
public static final String TREE_PARENT_CODE = "treeParentCode"; |
|
24 |
|
|
25 |
/** 树名称字段 */ |
|
26 |
public static final String TREE_NAME = "treeName"; |
|
27 |
|
|
28 |
/** 上级菜单ID字段 */ |
|
29 |
public static final String PARENT_MENU_ID = "parentMenuId"; |
|
30 |
|
|
31 |
/** 上级菜单名称字段 */ |
|
32 |
public static final String PARENT_MENU_NAME = "parentMenuName"; |
|
33 |
|
|
34 |
/** 数据库字符串类型 */ |
|
35 |
public static final String[] COLUMNTYPE_STR = { "char", "varchar", "nvarchar", "varchar2" }; |
|
36 |
|
|
37 |
/** 数据库文本类型 */ |
|
38 |
public static final String[] COLUMNTYPE_TEXT = { "tinytext", "text", "mediumtext", "longtext" }; |
|
39 |
|
|
40 |
/** 数据库时间类型 */ |
|
41 |
public static final String[] COLUMNTYPE_TIME = { "datetime", "time", "date", "timestamp" }; |
|
42 |
|
|
43 |
/** 数据库数字类型 */ |
|
44 |
public static final String[] COLUMNTYPE_NUMBER = { "tinyint", "smallint", "mediumint", "int", "number", "integer", |
|
45 |
"bit", "bigint", "float", "double", "decimal" }; |
|
46 |
|
|
47 |
/** 页面不需要编辑字段 */ |
|
48 |
public static final String[] COLUMNNAME_NOT_EDIT = { "id", "create_by", "create_time", "del_flag" }; |
|
49 |
|
|
50 |
/** 页面不需要显示的列表字段 */ |
|
51 |
public static final String[] COLUMNNAME_NOT_LIST = { "id", "create_by", "create_time", "del_flag", "update_by", |
|
52 |
"update_time" }; |
|
53 |
|
|
54 |
/** 页面不需要查询字段 */ |
|
55 |
public static final String[] COLUMNNAME_NOT_QUERY = { "id", "create_by", "create_time", "del_flag", "update_by", |
|
56 |
"update_time", "remark" }; |
|
57 |
|
|
58 |
/** Entity基类字段 */ |
|
59 |
public static final String[] BASE_ENTITY = { "createBy", "createTime", "updateBy", "updateTime", "remark" }; |
|
60 |
|
|
61 |
/** Tree基类字段 */ |
|
62 |
public static final String[] TREE_ENTITY = { "parentName", "parentId", "orderNum", "ancestors", "children" }; |
|
63 |
|
|
64 |
/** 文本框 */ |
|
65 |
public static final String HTML_INPUT = "input"; |
|
66 |
|
|
67 |
/** 文本域 */ |
|
68 |
public static final String HTML_TEXTAREA = "textarea"; |
|
69 |
|
|
70 |
/** 下拉框 */ |
|
71 |
public static final String HTML_SELECT = "select"; |
|
72 |
|
|
73 |
/** 单选框 */ |
|
74 |
public static final String HTML_RADIO = "radio"; |
|
75 |
|
|
76 |
/** 复选框 */ |
|
77 |
public static final String HTML_CHECKBOX = "checkbox"; |
|
78 |
|
|
79 |
/** 日期控件 */ |
|
80 |
public static final String HTML_DATETIME = "datetime"; |
|
81 |
|
|
82 |
/** 图片上传控件 */ |
|
83 |
public static final String HTML_IMAGE_UPLOAD = "imageUpload"; |
|
84 |
|
|
85 |
/** 文件上传控件 */ |
|
86 |
public static final String HTML_FILE_UPLOAD = "fileUpload"; |
|
87 |
|
|
88 |
/** 富文本控件 */ |
|
89 |
public static final String HTML_EDITOR = "editor"; |
|
90 |
|
|
91 |
/** 字符串类型 */ |
|
92 |
public static final String TYPE_STRING = "String"; |
|
93 |
|
|
94 |
/** 整型 */ |
|
95 |
public static final String TYPE_INTEGER = "Integer"; |
|
96 |
|
|
97 |
/** 长整型 */ |
|
98 |
public static final String TYPE_LONG = "Long"; |
|
99 |
|
|
100 |
/** 浮点型 */ |
|
101 |
public static final String TYPE_DOUBLE = "Double"; |
|
102 |
|
|
103 |
/** 高精度计算类型 */ |
|
104 |
public static final String TYPE_BIGDECIMAL = "BigDecimal"; |
|
105 |
|
|
106 |
/** 时间类型 */ |
|
107 |
public static final String TYPE_DATE = "Date"; |
|
108 |
|
|
109 |
/** 模糊查询 */ |
|
110 |
public static final String QUERY_LIKE = "LIKE"; |
|
111 |
|
|
112 |
/** 相等查询 */ |
|
113 |
public static final String QUERY_EQ = "EQ"; |
|
114 |
|
|
115 |
/** 需要 */ |
|
116 |
public static final String REQUIRE = "1"; |
|
117 |
} |