FileCrawlingConfigDbm.java 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876
  1. /*
  2. * Copyright 2009-2014 the CodeLibs Project and the Others.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
  13. * either express or implied. See the License for the specific language
  14. * governing permissions and limitations under the License.
  15. */
  16. package jp.sf.fess.db.bsentity.dbmeta;
  17. import java.util.List;
  18. import java.util.Map;
  19. import jp.sf.fess.db.allcommon.DBCurrent;
  20. import jp.sf.fess.db.allcommon.DBFluteConfig;
  21. import jp.sf.fess.db.exentity.FileCrawlingConfig;
  22. import org.seasar.dbflute.DBDef;
  23. import org.seasar.dbflute.Entity;
  24. import org.seasar.dbflute.dbmeta.AbstractDBMeta;
  25. import org.seasar.dbflute.dbmeta.PropertyGateway;
  26. import org.seasar.dbflute.dbmeta.info.ColumnInfo;
  27. import org.seasar.dbflute.dbmeta.info.ReferrerInfo;
  28. import org.seasar.dbflute.dbmeta.info.UniqueInfo;
  29. import org.seasar.dbflute.dbmeta.name.TableSqlName;
  30. /**
  31. * The DB meta of FILE_CRAWLING_CONFIG. (Singleton)
  32. * @author DBFlute(AutoGenerator)
  33. */
  34. public class FileCrawlingConfigDbm extends AbstractDBMeta {
  35. // ===================================================================================
  36. // Singleton
  37. // =========
  38. private static final FileCrawlingConfigDbm _instance = new FileCrawlingConfigDbm();
  39. private FileCrawlingConfigDbm() {
  40. }
  41. public static FileCrawlingConfigDbm getInstance() {
  42. return _instance;
  43. }
  44. // ===================================================================================
  45. // Current DBDef
  46. // =============
  47. @Override
  48. public DBDef getCurrentDBDef() {
  49. return DBCurrent.getInstance().currentDBDef();
  50. }
  51. // ===================================================================================
  52. // Property Gateway
  53. // ================
  54. // -----------------------------------------------------
  55. // Column Property
  56. // ---------------
  57. protected final Map<String, PropertyGateway> _epgMap = newHashMap();
  58. {
  59. setupEpg(_epgMap, new EpgId(), "id");
  60. setupEpg(_epgMap, new EpgName(), "name");
  61. setupEpg(_epgMap, new EpgPaths(), "paths");
  62. setupEpg(_epgMap, new EpgIncludedPaths(), "includedPaths");
  63. setupEpg(_epgMap, new EpgExcludedPaths(), "excludedPaths");
  64. setupEpg(_epgMap, new EpgIncludedDocPaths(), "includedDocPaths");
  65. setupEpg(_epgMap, new EpgExcludedDocPaths(), "excludedDocPaths");
  66. setupEpg(_epgMap, new EpgConfigParameter(), "configParameter");
  67. setupEpg(_epgMap, new EpgDepth(), "depth");
  68. setupEpg(_epgMap, new EpgMaxAccessCount(), "maxAccessCount");
  69. setupEpg(_epgMap, new EpgNumOfThread(), "numOfThread");
  70. setupEpg(_epgMap, new EpgIntervalTime(), "intervalTime");
  71. setupEpg(_epgMap, new EpgBoost(), "boost");
  72. setupEpg(_epgMap, new EpgAvailable(), "available");
  73. setupEpg(_epgMap, new EpgSortOrder(), "sortOrder");
  74. setupEpg(_epgMap, new EpgCreatedBy(), "createdBy");
  75. setupEpg(_epgMap, new EpgCreatedTime(), "createdTime");
  76. setupEpg(_epgMap, new EpgUpdatedBy(), "updatedBy");
  77. setupEpg(_epgMap, new EpgUpdatedTime(), "updatedTime");
  78. setupEpg(_epgMap, new EpgDeletedBy(), "deletedBy");
  79. setupEpg(_epgMap, new EpgDeletedTime(), "deletedTime");
  80. setupEpg(_epgMap, new EpgVersionNo(), "versionNo");
  81. }
  82. public static class EpgId implements PropertyGateway {
  83. @Override
  84. public Object read(final Entity et) {
  85. return ((FileCrawlingConfig) et).getId();
  86. }
  87. @Override
  88. public void write(final Entity et, final Object vl) {
  89. ((FileCrawlingConfig) et).setId(ctl(vl));
  90. }
  91. }
  92. public static class EpgName implements PropertyGateway {
  93. @Override
  94. public Object read(final Entity et) {
  95. return ((FileCrawlingConfig) et).getName();
  96. }
  97. @Override
  98. public void write(final Entity et, final Object vl) {
  99. ((FileCrawlingConfig) et).setName((String) vl);
  100. }
  101. }
  102. public static class EpgPaths implements PropertyGateway {
  103. @Override
  104. public Object read(final Entity et) {
  105. return ((FileCrawlingConfig) et).getPaths();
  106. }
  107. @Override
  108. public void write(final Entity et, final Object vl) {
  109. ((FileCrawlingConfig) et).setPaths((String) vl);
  110. }
  111. }
  112. public static class EpgIncludedPaths implements PropertyGateway {
  113. @Override
  114. public Object read(final Entity et) {
  115. return ((FileCrawlingConfig) et).getIncludedPaths();
  116. }
  117. @Override
  118. public void write(final Entity et, final Object vl) {
  119. ((FileCrawlingConfig) et).setIncludedPaths((String) vl);
  120. }
  121. }
  122. public static class EpgExcludedPaths implements PropertyGateway {
  123. @Override
  124. public Object read(final Entity et) {
  125. return ((FileCrawlingConfig) et).getExcludedPaths();
  126. }
  127. @Override
  128. public void write(final Entity et, final Object vl) {
  129. ((FileCrawlingConfig) et).setExcludedPaths((String) vl);
  130. }
  131. }
  132. public static class EpgIncludedDocPaths implements PropertyGateway {
  133. @Override
  134. public Object read(final Entity et) {
  135. return ((FileCrawlingConfig) et).getIncludedDocPaths();
  136. }
  137. @Override
  138. public void write(final Entity et, final Object vl) {
  139. ((FileCrawlingConfig) et).setIncludedDocPaths((String) vl);
  140. }
  141. }
  142. public static class EpgExcludedDocPaths implements PropertyGateway {
  143. @Override
  144. public Object read(final Entity et) {
  145. return ((FileCrawlingConfig) et).getExcludedDocPaths();
  146. }
  147. @Override
  148. public void write(final Entity et, final Object vl) {
  149. ((FileCrawlingConfig) et).setExcludedDocPaths((String) vl);
  150. }
  151. }
  152. public static class EpgConfigParameter implements PropertyGateway {
  153. @Override
  154. public Object read(final Entity et) {
  155. return ((FileCrawlingConfig) et).getConfigParameter();
  156. }
  157. @Override
  158. public void write(final Entity et, final Object vl) {
  159. ((FileCrawlingConfig) et).setConfigParameter((String) vl);
  160. }
  161. }
  162. public static class EpgDepth implements PropertyGateway {
  163. @Override
  164. public Object read(final Entity et) {
  165. return ((FileCrawlingConfig) et).getDepth();
  166. }
  167. @Override
  168. public void write(final Entity et, final Object vl) {
  169. ((FileCrawlingConfig) et).setDepth(cti(vl));
  170. }
  171. }
  172. public static class EpgMaxAccessCount implements PropertyGateway {
  173. @Override
  174. public Object read(final Entity et) {
  175. return ((FileCrawlingConfig) et).getMaxAccessCount();
  176. }
  177. @Override
  178. public void write(final Entity et, final Object vl) {
  179. ((FileCrawlingConfig) et).setMaxAccessCount(ctl(vl));
  180. }
  181. }
  182. public static class EpgNumOfThread implements PropertyGateway {
  183. @Override
  184. public Object read(final Entity et) {
  185. return ((FileCrawlingConfig) et).getNumOfThread();
  186. }
  187. @Override
  188. public void write(final Entity et, final Object vl) {
  189. ((FileCrawlingConfig) et).setNumOfThread(cti(vl));
  190. }
  191. }
  192. public static class EpgIntervalTime implements PropertyGateway {
  193. @Override
  194. public Object read(final Entity et) {
  195. return ((FileCrawlingConfig) et).getIntervalTime();
  196. }
  197. @Override
  198. public void write(final Entity et, final Object vl) {
  199. ((FileCrawlingConfig) et).setIntervalTime(cti(vl));
  200. }
  201. }
  202. public static class EpgBoost implements PropertyGateway {
  203. @Override
  204. public Object read(final Entity et) {
  205. return ((FileCrawlingConfig) et).getBoost();
  206. }
  207. @Override
  208. public void write(final Entity et, final Object vl) {
  209. ((FileCrawlingConfig) et).setBoost(ctb(vl));
  210. }
  211. }
  212. public static class EpgAvailable implements PropertyGateway {
  213. @Override
  214. public Object read(final Entity et) {
  215. return ((FileCrawlingConfig) et).getAvailable();
  216. }
  217. @Override
  218. public void write(final Entity et, final Object vl) {
  219. ((FileCrawlingConfig) et).setAvailable((String) vl);
  220. }
  221. }
  222. public static class EpgSortOrder implements PropertyGateway {
  223. @Override
  224. public Object read(final Entity et) {
  225. return ((FileCrawlingConfig) et).getSortOrder();
  226. }
  227. @Override
  228. public void write(final Entity et, final Object vl) {
  229. ((FileCrawlingConfig) et).setSortOrder(cti(vl));
  230. }
  231. }
  232. public static class EpgCreatedBy implements PropertyGateway {
  233. @Override
  234. public Object read(final Entity et) {
  235. return ((FileCrawlingConfig) et).getCreatedBy();
  236. }
  237. @Override
  238. public void write(final Entity et, final Object vl) {
  239. ((FileCrawlingConfig) et).setCreatedBy((String) vl);
  240. }
  241. }
  242. public static class EpgCreatedTime implements PropertyGateway {
  243. @Override
  244. public Object read(final Entity et) {
  245. return ((FileCrawlingConfig) et).getCreatedTime();
  246. }
  247. @Override
  248. public void write(final Entity et, final Object vl) {
  249. ((FileCrawlingConfig) et).setCreatedTime((java.sql.Timestamp) vl);
  250. }
  251. }
  252. public static class EpgUpdatedBy implements PropertyGateway {
  253. @Override
  254. public Object read(final Entity et) {
  255. return ((FileCrawlingConfig) et).getUpdatedBy();
  256. }
  257. @Override
  258. public void write(final Entity et, final Object vl) {
  259. ((FileCrawlingConfig) et).setUpdatedBy((String) vl);
  260. }
  261. }
  262. public static class EpgUpdatedTime implements PropertyGateway {
  263. @Override
  264. public Object read(final Entity et) {
  265. return ((FileCrawlingConfig) et).getUpdatedTime();
  266. }
  267. @Override
  268. public void write(final Entity et, final Object vl) {
  269. ((FileCrawlingConfig) et).setUpdatedTime((java.sql.Timestamp) vl);
  270. }
  271. }
  272. public static class EpgDeletedBy implements PropertyGateway {
  273. @Override
  274. public Object read(final Entity et) {
  275. return ((FileCrawlingConfig) et).getDeletedBy();
  276. }
  277. @Override
  278. public void write(final Entity et, final Object vl) {
  279. ((FileCrawlingConfig) et).setDeletedBy((String) vl);
  280. }
  281. }
  282. public static class EpgDeletedTime implements PropertyGateway {
  283. @Override
  284. public Object read(final Entity et) {
  285. return ((FileCrawlingConfig) et).getDeletedTime();
  286. }
  287. @Override
  288. public void write(final Entity et, final Object vl) {
  289. ((FileCrawlingConfig) et).setDeletedTime((java.sql.Timestamp) vl);
  290. }
  291. }
  292. public static class EpgVersionNo implements PropertyGateway {
  293. @Override
  294. public Object read(final Entity et) {
  295. return ((FileCrawlingConfig) et).getVersionNo();
  296. }
  297. @Override
  298. public void write(final Entity et, final Object vl) {
  299. ((FileCrawlingConfig) et).setVersionNo(cti(vl));
  300. }
  301. }
  302. @Override
  303. public PropertyGateway findPropertyGateway(final String prop) {
  304. return doFindEpg(_epgMap, prop);
  305. }
  306. // ===================================================================================
  307. // Table Info
  308. // ==========
  309. protected final String _tableDbName = "FILE_CRAWLING_CONFIG";
  310. protected final String _tablePropertyName = "fileCrawlingConfig";
  311. protected final TableSqlName _tableSqlName = new TableSqlName(
  312. "FILE_CRAWLING_CONFIG", _tableDbName);
  313. {
  314. _tableSqlName.xacceptFilter(DBFluteConfig.getInstance()
  315. .getTableSqlNameFilter());
  316. }
  317. @Override
  318. public String getTableDbName() {
  319. return _tableDbName;
  320. }
  321. @Override
  322. public String getTablePropertyName() {
  323. return _tablePropertyName;
  324. }
  325. @Override
  326. public TableSqlName getTableSqlName() {
  327. return _tableSqlName;
  328. }
  329. // ===================================================================================
  330. // Column Info
  331. // ===========
  332. protected final ColumnInfo _columnId = cci(
  333. "ID",
  334. "ID",
  335. null,
  336. null,
  337. Long.class,
  338. "id",
  339. null,
  340. true,
  341. true,
  342. true,
  343. "BIGINT",
  344. 19,
  345. 0,
  346. "NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_92C9BA4B_DAC0_4884_8CD3_7B05BDD9AD3C",
  347. false,
  348. null,
  349. null,
  350. null,
  351. "fileAuthenticationList,fileConfigToLabelTypeMappingList,fileConfigToRoleTypeMappingList",
  352. null);
  353. protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null,
  354. String.class, "name", null, false, false, true, "VARCHAR", 200, 0,
  355. null, false, null, null, null, null, null);
  356. protected final ColumnInfo _columnPaths = cci("PATHS", "PATHS", null, null,
  357. String.class, "paths", null, false, false, true, "VARCHAR", 4000,
  358. 0, null, false, null, null, null, null, null);
  359. protected final ColumnInfo _columnIncludedPaths = cci("INCLUDED_PATHS",
  360. "INCLUDED_PATHS", null, null, String.class, "includedPaths", null,
  361. false, false, false, "VARCHAR", 4000, 0, null, false, null, null,
  362. null, null, null);
  363. protected final ColumnInfo _columnExcludedPaths = cci("EXCLUDED_PATHS",
  364. "EXCLUDED_PATHS", null, null, String.class, "excludedPaths", null,
  365. false, false, false, "VARCHAR", 4000, 0, null, false, null, null,
  366. null, null, null);
  367. protected final ColumnInfo _columnIncludedDocPaths = cci(
  368. "INCLUDED_DOC_PATHS", "INCLUDED_DOC_PATHS", null, null,
  369. String.class, "includedDocPaths", null, false, false, false,
  370. "VARCHAR", 4000, 0, null, false, null, null, null, null, null);
  371. protected final ColumnInfo _columnExcludedDocPaths = cci(
  372. "EXCLUDED_DOC_PATHS", "EXCLUDED_DOC_PATHS", null, null,
  373. String.class, "excludedDocPaths", null, false, false, false,
  374. "VARCHAR", 4000, 0, null, false, null, null, null, null, null);
  375. protected final ColumnInfo _columnConfigParameter = cci("CONFIG_PARAMETER",
  376. "CONFIG_PARAMETER", null, null, String.class, "configParameter",
  377. null, false, false, false, "VARCHAR", 4000, 0, null, false, null,
  378. null, null, null, null);
  379. protected final ColumnInfo _columnDepth = cci("DEPTH", "DEPTH", null, null,
  380. Integer.class, "depth", null, false, false, false, "INTEGER", 10,
  381. 0, null, false, null, null, null, null, null);
  382. protected final ColumnInfo _columnMaxAccessCount = cci("MAX_ACCESS_COUNT",
  383. "MAX_ACCESS_COUNT", null, null, Long.class, "maxAccessCount", null,
  384. false, false, false, "BIGINT", 19, 0, null, false, null, null,
  385. null, null, null);
  386. protected final ColumnInfo _columnNumOfThread = cci("NUM_OF_THREAD",
  387. "NUM_OF_THREAD", null, null, Integer.class, "numOfThread", null,
  388. false, false, true, "INTEGER", 10, 0, null, false, null, null,
  389. null, null, null);
  390. protected final ColumnInfo _columnIntervalTime = cci("INTERVAL_TIME",
  391. "INTERVAL_TIME", null, null, Integer.class, "intervalTime", null,
  392. false, false, true, "INTEGER", 10, 0, null, false, null, null,
  393. null, null, null);
  394. protected final ColumnInfo _columnBoost = cci("BOOST", "BOOST", null, null,
  395. java.math.BigDecimal.class, "boost", null, false, false, true,
  396. "DOUBLE", 17, 0, null, false, null, null, null, null, null);
  397. protected final ColumnInfo _columnAvailable = cci("AVAILABLE", "AVAILABLE",
  398. null, null, String.class, "available", null, false, false, true,
  399. "VARCHAR", 1, 0, null, false, null, null, null, null, null);
  400. protected final ColumnInfo _columnSortOrder = cci("SORT_ORDER",
  401. "SORT_ORDER", null, null, Integer.class, "sortOrder", null, false,
  402. false, true, "INTEGER", 10, 0, null, false, null, null, null, null,
  403. null);
  404. protected final ColumnInfo _columnCreatedBy = cci("CREATED_BY",
  405. "CREATED_BY", null, null, String.class, "createdBy", null, false,
  406. false, true, "VARCHAR", 255, 0, null, false, null, null, null,
  407. null, null);
  408. protected final ColumnInfo _columnCreatedTime = cci("CREATED_TIME",
  409. "CREATED_TIME", null, null, java.sql.Timestamp.class,
  410. "createdTime", null, false, false, true, "TIMESTAMP", 23, 10, null,
  411. false, null, null, null, null, null);
  412. protected final ColumnInfo _columnUpdatedBy = cci("UPDATED_BY",
  413. "UPDATED_BY", null, null, String.class, "updatedBy", null, false,
  414. false, false, "VARCHAR", 255, 0, null, false, null, null, null,
  415. null, null);
  416. protected final ColumnInfo _columnUpdatedTime = cci("UPDATED_TIME",
  417. "UPDATED_TIME", null, null, java.sql.Timestamp.class,
  418. "updatedTime", null, false, false, false, "TIMESTAMP", 23, 10,
  419. null, false, null, null, null, null, null);
  420. protected final ColumnInfo _columnDeletedBy = cci("DELETED_BY",
  421. "DELETED_BY", null, null, String.class, "deletedBy", null, false,
  422. false, false, "VARCHAR", 255, 0, null, false, null, null, null,
  423. null, null);
  424. protected final ColumnInfo _columnDeletedTime = cci("DELETED_TIME",
  425. "DELETED_TIME", null, null, java.sql.Timestamp.class,
  426. "deletedTime", null, false, false, false, "TIMESTAMP", 23, 10,
  427. null, false, null, null, null, null, null);
  428. protected final ColumnInfo _columnVersionNo = cci("VERSION_NO",
  429. "VERSION_NO", null, null, Integer.class, "versionNo", null, false,
  430. false, true, "INTEGER", 10, 0, null, false,
  431. OptimisticLockType.VERSION_NO, null, null, null, null);
  432. /**
  433. * ID: {PK, ID, NotNull, BIGINT(19)}
  434. * @return The information object of specified column. (NotNull)
  435. */
  436. public ColumnInfo columnId() {
  437. return _columnId;
  438. }
  439. /**
  440. * NAME: {NotNull, VARCHAR(200)}
  441. * @return The information object of specified column. (NotNull)
  442. */
  443. public ColumnInfo columnName() {
  444. return _columnName;
  445. }
  446. /**
  447. * PATHS: {NotNull, VARCHAR(4000)}
  448. * @return The information object of specified column. (NotNull)
  449. */
  450. public ColumnInfo columnPaths() {
  451. return _columnPaths;
  452. }
  453. /**
  454. * INCLUDED_PATHS: {VARCHAR(4000)}
  455. * @return The information object of specified column. (NotNull)
  456. */
  457. public ColumnInfo columnIncludedPaths() {
  458. return _columnIncludedPaths;
  459. }
  460. /**
  461. * EXCLUDED_PATHS: {VARCHAR(4000)}
  462. * @return The information object of specified column. (NotNull)
  463. */
  464. public ColumnInfo columnExcludedPaths() {
  465. return _columnExcludedPaths;
  466. }
  467. /**
  468. * INCLUDED_DOC_PATHS: {VARCHAR(4000)}
  469. * @return The information object of specified column. (NotNull)
  470. */
  471. public ColumnInfo columnIncludedDocPaths() {
  472. return _columnIncludedDocPaths;
  473. }
  474. /**
  475. * EXCLUDED_DOC_PATHS: {VARCHAR(4000)}
  476. * @return The information object of specified column. (NotNull)
  477. */
  478. public ColumnInfo columnExcludedDocPaths() {
  479. return _columnExcludedDocPaths;
  480. }
  481. /**
  482. * CONFIG_PARAMETER: {VARCHAR(4000)}
  483. * @return The information object of specified column. (NotNull)
  484. */
  485. public ColumnInfo columnConfigParameter() {
  486. return _columnConfigParameter;
  487. }
  488. /**
  489. * DEPTH: {INTEGER(10)}
  490. * @return The information object of specified column. (NotNull)
  491. */
  492. public ColumnInfo columnDepth() {
  493. return _columnDepth;
  494. }
  495. /**
  496. * MAX_ACCESS_COUNT: {BIGINT(19)}
  497. * @return The information object of specified column. (NotNull)
  498. */
  499. public ColumnInfo columnMaxAccessCount() {
  500. return _columnMaxAccessCount;
  501. }
  502. /**
  503. * NUM_OF_THREAD: {NotNull, INTEGER(10)}
  504. * @return The information object of specified column. (NotNull)
  505. */
  506. public ColumnInfo columnNumOfThread() {
  507. return _columnNumOfThread;
  508. }
  509. /**
  510. * INTERVAL_TIME: {NotNull, INTEGER(10)}
  511. * @return The information object of specified column. (NotNull)
  512. */
  513. public ColumnInfo columnIntervalTime() {
  514. return _columnIntervalTime;
  515. }
  516. /**
  517. * BOOST: {NotNull, DOUBLE(17)}
  518. * @return The information object of specified column. (NotNull)
  519. */
  520. public ColumnInfo columnBoost() {
  521. return _columnBoost;
  522. }
  523. /**
  524. * AVAILABLE: {NotNull, VARCHAR(1)}
  525. * @return The information object of specified column. (NotNull)
  526. */
  527. public ColumnInfo columnAvailable() {
  528. return _columnAvailable;
  529. }
  530. /**
  531. * SORT_ORDER: {NotNull, INTEGER(10)}
  532. * @return The information object of specified column. (NotNull)
  533. */
  534. public ColumnInfo columnSortOrder() {
  535. return _columnSortOrder;
  536. }
  537. /**
  538. * CREATED_BY: {NotNull, VARCHAR(255)}
  539. * @return The information object of specified column. (NotNull)
  540. */
  541. public ColumnInfo columnCreatedBy() {
  542. return _columnCreatedBy;
  543. }
  544. /**
  545. * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)}
  546. * @return The information object of specified column. (NotNull)
  547. */
  548. public ColumnInfo columnCreatedTime() {
  549. return _columnCreatedTime;
  550. }
  551. /**
  552. * UPDATED_BY: {VARCHAR(255)}
  553. * @return The information object of specified column. (NotNull)
  554. */
  555. public ColumnInfo columnUpdatedBy() {
  556. return _columnUpdatedBy;
  557. }
  558. /**
  559. * UPDATED_TIME: {TIMESTAMP(23, 10)}
  560. * @return The information object of specified column. (NotNull)
  561. */
  562. public ColumnInfo columnUpdatedTime() {
  563. return _columnUpdatedTime;
  564. }
  565. /**
  566. * DELETED_BY: {VARCHAR(255)}
  567. * @return The information object of specified column. (NotNull)
  568. */
  569. public ColumnInfo columnDeletedBy() {
  570. return _columnDeletedBy;
  571. }
  572. /**
  573. * DELETED_TIME: {TIMESTAMP(23, 10)}
  574. * @return The information object of specified column. (NotNull)
  575. */
  576. public ColumnInfo columnDeletedTime() {
  577. return _columnDeletedTime;
  578. }
  579. /**
  580. * VERSION_NO: {NotNull, INTEGER(10)}
  581. * @return The information object of specified column. (NotNull)
  582. */
  583. public ColumnInfo columnVersionNo() {
  584. return _columnVersionNo;
  585. }
  586. @Override
  587. protected List<ColumnInfo> ccil() {
  588. final List<ColumnInfo> ls = newArrayList();
  589. ls.add(columnId());
  590. ls.add(columnName());
  591. ls.add(columnPaths());
  592. ls.add(columnIncludedPaths());
  593. ls.add(columnExcludedPaths());
  594. ls.add(columnIncludedDocPaths());
  595. ls.add(columnExcludedDocPaths());
  596. ls.add(columnConfigParameter());
  597. ls.add(columnDepth());
  598. ls.add(columnMaxAccessCount());
  599. ls.add(columnNumOfThread());
  600. ls.add(columnIntervalTime());
  601. ls.add(columnBoost());
  602. ls.add(columnAvailable());
  603. ls.add(columnSortOrder());
  604. ls.add(columnCreatedBy());
  605. ls.add(columnCreatedTime());
  606. ls.add(columnUpdatedBy());
  607. ls.add(columnUpdatedTime());
  608. ls.add(columnDeletedBy());
  609. ls.add(columnDeletedTime());
  610. ls.add(columnVersionNo());
  611. return ls;
  612. }
  613. {
  614. initializeInformationResource();
  615. }
  616. // ===================================================================================
  617. // Unique Info
  618. // ===========
  619. // -----------------------------------------------------
  620. // Primary Element
  621. // ---------------
  622. @Override
  623. protected UniqueInfo cpui() {
  624. return hpcpui(columnId());
  625. }
  626. @Override
  627. public boolean hasPrimaryKey() {
  628. return true;
  629. }
  630. @Override
  631. public boolean hasCompoundPrimaryKey() {
  632. return false;
  633. }
  634. // ===================================================================================
  635. // Relation Info
  636. // =============
  637. // cannot cache because it uses related DB meta instance while booting
  638. // (instead, cached by super's collection)
  639. // -----------------------------------------------------
  640. // Foreign Property
  641. // ----------------
  642. // -----------------------------------------------------
  643. // Referrer Property
  644. // -----------------
  645. /**
  646. * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'.
  647. * @return The information object of referrer property. (NotNull)
  648. */
  649. public ReferrerInfo referrerFileAuthenticationList() {
  650. final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
  651. FileAuthenticationDbm.getInstance()
  652. .columnFileCrawlingConfigId());
  653. return cri("CONSTRAINT_F90", "fileAuthenticationList", this,
  654. FileAuthenticationDbm.getInstance(), mp, false,
  655. "fileCrawlingConfig");
  656. }
  657. /**
  658. * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'.
  659. * @return The information object of referrer property. (NotNull)
  660. */
  661. public ReferrerInfo referrerFileConfigToLabelTypeMappingList() {
  662. final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
  663. FileConfigToLabelTypeMappingDbm.getInstance()
  664. .columnFileConfigId());
  665. return cri("CONSTRAINT_F57F", "fileConfigToLabelTypeMappingList", this,
  666. FileConfigToLabelTypeMappingDbm.getInstance(), mp, false,
  667. "fileCrawlingConfig");
  668. }
  669. /**
  670. * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'.
  671. * @return The information object of referrer property. (NotNull)
  672. */
  673. public ReferrerInfo referrerFileConfigToRoleTypeMappingList() {
  674. final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
  675. FileConfigToRoleTypeMappingDbm.getInstance()
  676. .columnFileConfigId());
  677. return cri("CONSTRAINT_3A", "fileConfigToRoleTypeMappingList", this,
  678. FileConfigToRoleTypeMappingDbm.getInstance(), mp, false,
  679. "fileCrawlingConfig");
  680. }
  681. // ===================================================================================
  682. // Various Info
  683. // ============
  684. @Override
  685. public boolean hasIdentity() {
  686. return true;
  687. }
  688. @Override
  689. public boolean hasVersionNo() {
  690. return true;
  691. }
  692. @Override
  693. public ColumnInfo getVersionNoColumnInfo() {
  694. return _columnVersionNo;
  695. }
  696. // ===================================================================================
  697. // Type Name
  698. // =========
  699. @Override
  700. public String getEntityTypeName() {
  701. return "jp.sf.fess.db.exentity.FileCrawlingConfig";
  702. }
  703. @Override
  704. public String getConditionBeanTypeName() {
  705. return "jp.sf.fess.db.cbean.FileCrawlingConfigCB";
  706. }
  707. @Override
  708. public String getBehaviorTypeName() {
  709. return "jp.sf.fess.db.exbhv.FileCrawlingConfigBhv";
  710. }
  711. // ===================================================================================
  712. // Object Type
  713. // ===========
  714. @Override
  715. public Class<FileCrawlingConfig> getEntityType() {
  716. return FileCrawlingConfig.class;
  717. }
  718. // ===================================================================================
  719. // Object Instance
  720. // ===============
  721. @Override
  722. public FileCrawlingConfig newEntity() {
  723. return new FileCrawlingConfig();
  724. }
  725. public FileCrawlingConfig newMyEntity() {
  726. return new FileCrawlingConfig();
  727. }
  728. // ===================================================================================
  729. // Map Communication
  730. // =================
  731. @Override
  732. public void acceptPrimaryKeyMap(final Entity et,
  733. final Map<String, ? extends Object> mp) {
  734. doAcceptPrimaryKeyMap((FileCrawlingConfig) et, mp);
  735. }
  736. @Override
  737. public void acceptAllColumnMap(final Entity et,
  738. final Map<String, ? extends Object> mp) {
  739. doAcceptAllColumnMap((FileCrawlingConfig) et, mp);
  740. }
  741. @Override
  742. public Map<String, Object> extractPrimaryKeyMap(final Entity et) {
  743. return doExtractPrimaryKeyMap(et);
  744. }
  745. @Override
  746. public Map<String, Object> extractAllColumnMap(final Entity et) {
  747. return doExtractAllColumnMap(et);
  748. }
  749. }