1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.codelibs.fess.es.config.bsentity.dbmeta;
17
18 import java.time.LocalDateTime;
19 import java.util.List;
20 import java.util.Map;
21
22 import org.codelibs.fess.es.config.exentity.ElevateWordToLabel;
23 import org.dbflute.Entity;
24 import org.dbflute.dbmeta.AbstractDBMeta;
25 import org.dbflute.dbmeta.info.ColumnInfo;
26 import org.dbflute.dbmeta.info.UniqueInfo;
27 import org.dbflute.dbmeta.name.TableSqlName;
28 import org.dbflute.dbmeta.property.PropertyGateway;
29 import org.dbflute.dbway.DBDef;
30 import org.dbflute.util.DfTypeUtil;
31
32
33
34
35 public class ElevateWordToLabelDbm extends AbstractDBMeta {
36
37 protected static final Class<?> suppressUnusedImportLocalDateTime = LocalDateTime.class;
38
39
40
41
42 private static final ElevateWordToLabelDbm _instance = new ElevateWordToLabelDbm();
43
44 private ElevateWordToLabelDbm() {
45 }
46
47 public static ElevateWordToLabelDbm getInstance() {
48 return _instance;
49 }
50
51
52
53
54 @Override
55 public String getProjectName() {
56 return null;
57 }
58
59 @Override
60 public String getProjectPrefix() {
61 return null;
62 }
63
64 @Override
65 public String getGenerationGapBasePrefix() {
66 return null;
67 }
68
69 @Override
70 public DBDef getCurrentDBDef() {
71 return null;
72 }
73
74
75
76
77
78
79
80 protected final Map<String, PropertyGateway> _epgMap = newHashMap();
81 {
82 setupEpg(_epgMap, et -> ((ElevateWordToLabel) et).getElevateWordId(),
83 (et, vl) -> ((ElevateWordToLabel) et).setElevateWordId(DfTypeUtil.toString(vl)), "elevateWordId");
84 setupEpg(_epgMap, et -> ((ElevateWordToLabel) et).getLabelTypeId(),
85 (et, vl) -> ((ElevateWordToLabel) et).setLabelTypeId(DfTypeUtil.toString(vl)), "labelTypeId");
86 }
87
88 @Override
89 public PropertyGateway findPropertyGateway(final String prop) {
90 return doFindEpg(_epgMap, prop);
91 }
92
93
94
95
96 protected final String _tableDbName = "elevate_word_to_label";
97 protected final String _tableDispName = "elevate_word_to_label";
98 protected final String _tablePropertyName = "ElevateWordToLabel";
99
100 public String getTableDbName() {
101 return _tableDbName;
102 }
103
104 @Override
105 public String getTableDispName() {
106 return _tableDispName;
107 }
108
109 @Override
110 public String getTablePropertyName() {
111 return _tablePropertyName;
112 }
113
114 @Override
115 public TableSqlName getTableSqlName() {
116 return null;
117 }
118
119
120
121
122 protected final ColumnInfo _columnElevateWordId = cci("elevateWordId", "elevateWordId", null, null, String.class, "elevateWordId", null,
123 false, false, false, "keyword", 0, 0, null, null, false, null, null, null, null, null, false);
124 protected final ColumnInfo _columnLabelTypeId = cci("labelTypeId", "labelTypeId", null, null, String.class, "labelTypeId", null, false,
125 false, false, "keyword", 0, 0, null, null, false, null, null, null, null, null, false);
126
127 public ColumnInfo columnElevateWordId() {
128 return _columnElevateWordId;
129 }
130
131 public ColumnInfo columnLabelTypeId() {
132 return _columnLabelTypeId;
133 }
134
135 protected List<ColumnInfo> ccil() {
136 List<ColumnInfo> ls = newArrayList();
137 ls.add(columnElevateWordId());
138 ls.add(columnLabelTypeId());
139 return ls;
140 }
141
142
143
144
145 @Override
146 public boolean hasPrimaryKey() {
147 return false;
148 }
149
150 @Override
151 public boolean hasCompoundPrimaryKey() {
152 return false;
153 }
154
155 @Override
156 protected UniqueInfo cpui() {
157 return null;
158 }
159
160
161
162
163 @Override
164 public String getEntityTypeName() {
165 return "org.codelibs.fess.es.config.exentity.ElevateWordToLabel";
166 }
167
168 @Override
169 public String getConditionBeanTypeName() {
170 return "org.codelibs.fess.es.config.cbean.ElevateWordToLabelCB";
171 }
172
173 @Override
174 public String getBehaviorTypeName() {
175 return "org.codelibs.fess.es.config.exbhv.ElevateWordToLabelBhv";
176 }
177
178
179
180
181 @Override
182 public Class<? extends Entity> getEntityType() {
183 return ElevateWordToLabel.class;
184 }
185
186
187
188
189 @Override
190 public Entity newEntity() {
191 return new ElevateWordToLabel();
192 }
193
194
195
196
197 @Override
198 public void acceptPrimaryKeyMap(Entity entity, Map<String, ? extends Object> primaryKeyMap) {
199 }
200
201 @Override
202 public void acceptAllColumnMap(Entity entity, Map<String, ? extends Object> allColumnMap) {
203 }
204
205 @Override
206 public Map<String, Object> extractPrimaryKeyMap(Entity entity) {
207 return null;
208 }
209
210 @Override
211 public Map<String, Object> extractAllColumnMap(Entity entity) {
212 return null;
213 }
214 }