ludc
2023-04-26 7f0570d20aac189f1b170942bd7100b281a1c824
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
package com.vci.ubcs.ddl.processor.dll;
 
import com.vci.ubcs.omd.vo.OmdBtmTypeAttributeVO;
 
import java.util.List;
 
/**
 * Description:
 *
 * @author LiHang
 * @date 2023/4/25
 */
public interface DllBehavior {
    /**
     * 主键
     */
    String OID = "oid";
 
    /**
     * 空格
     */
    String SPACE = " ";
 
    /**
     * 默认值
     */
    String DEFAULT = "default";
 
    /**
     * 字符串
     */
    String VARCHAR = "varchar2";
 
    /**
     * 数字
     */
    String NUMBER = "number";
 
    /**
     * 日期,日期时间,时间戳
     */
    String TIMESTAMP = "TIMESTAMP";
 
    /**
     * 获取创建的sql语句中属性部分
     * @param attributeVOList 属性的立碑
     * @return sql语句
     */
    String getCreateSqlByAttributeForBtm(List<OmdBtmTypeAttributeVO> attributeVOList);
 
    /**
     * 处理整数类型的sql转换
     * @param attributeVO 属性
     * @return sql
     */
    String dealNumberCreateSql(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 调用处理默认值和非空
     * @param attributeVO 属性
     * @return 执行结果
     */
    String dealDefaultAndNull(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 处理默认值
     * @param defaultValue 默认值
     * @return sql
     */
    String dealDefaultValue(String defaultValue);
 
    /**
     * 处理浮点数类型的sql转换
     * @param attributeVO 属性
     * @return sql
     */
    String dealDoubleCreateSql(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 处理非空
     * @return sql
     */
    String dealNullableSql(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 处理布尔类型的sql转换
     * @param attributeVO 属性
     * @return sql
     */
    String dealBooleanCreateSql(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 处理日期时间类型的sql转换
     * @param attributeVO 属性
     * @return sql
     */
    String dealDateTimeCreateSql(OmdBtmTypeAttributeVO attributeVO);
 
    /**
     * 处理字符串类型的sql转换
     * @param attributeVO 属性
     * @return sql
     */
    String dealStringCreateSql(OmdBtmTypeAttributeVO attributeVO);
}