123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876 |
- /*
- * Copyright 2009-2014 the CodeLibs Project and the Others.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
- * either express or implied. See the License for the specific language
- * governing permissions and limitations under the License.
- */
- package jp.sf.fess.db.bsentity.dbmeta;
- import java.util.List;
- import java.util.Map;
- import jp.sf.fess.db.allcommon.DBCurrent;
- import jp.sf.fess.db.allcommon.DBFluteConfig;
- import jp.sf.fess.db.exentity.FileCrawlingConfig;
- import org.seasar.dbflute.DBDef;
- import org.seasar.dbflute.Entity;
- import org.seasar.dbflute.dbmeta.AbstractDBMeta;
- import org.seasar.dbflute.dbmeta.PropertyGateway;
- import org.seasar.dbflute.dbmeta.info.ColumnInfo;
- import org.seasar.dbflute.dbmeta.info.ReferrerInfo;
- import org.seasar.dbflute.dbmeta.info.UniqueInfo;
- import org.seasar.dbflute.dbmeta.name.TableSqlName;
- /**
- * The DB meta of FILE_CRAWLING_CONFIG. (Singleton)
- * @author DBFlute(AutoGenerator)
- */
- public class FileCrawlingConfigDbm extends AbstractDBMeta {
- // ===================================================================================
- // Singleton
- // =========
- private static final FileCrawlingConfigDbm _instance = new FileCrawlingConfigDbm();
- private FileCrawlingConfigDbm() {
- }
- public static FileCrawlingConfigDbm getInstance() {
- return _instance;
- }
- // ===================================================================================
- // Current DBDef
- // =============
- @Override
- public DBDef getCurrentDBDef() {
- return DBCurrent.getInstance().currentDBDef();
- }
- // ===================================================================================
- // Property Gateway
- // ================
- // -----------------------------------------------------
- // Column Property
- // ---------------
- protected final Map<String, PropertyGateway> _epgMap = newHashMap();
- {
- setupEpg(_epgMap, new EpgId(), "id");
- setupEpg(_epgMap, new EpgName(), "name");
- setupEpg(_epgMap, new EpgPaths(), "paths");
- setupEpg(_epgMap, new EpgIncludedPaths(), "includedPaths");
- setupEpg(_epgMap, new EpgExcludedPaths(), "excludedPaths");
- setupEpg(_epgMap, new EpgIncludedDocPaths(), "includedDocPaths");
- setupEpg(_epgMap, new EpgExcludedDocPaths(), "excludedDocPaths");
- setupEpg(_epgMap, new EpgConfigParameter(), "configParameter");
- setupEpg(_epgMap, new EpgDepth(), "depth");
- setupEpg(_epgMap, new EpgMaxAccessCount(), "maxAccessCount");
- setupEpg(_epgMap, new EpgNumOfThread(), "numOfThread");
- setupEpg(_epgMap, new EpgIntervalTime(), "intervalTime");
- setupEpg(_epgMap, new EpgBoost(), "boost");
- setupEpg(_epgMap, new EpgAvailable(), "available");
- setupEpg(_epgMap, new EpgSortOrder(), "sortOrder");
- setupEpg(_epgMap, new EpgCreatedBy(), "createdBy");
- setupEpg(_epgMap, new EpgCreatedTime(), "createdTime");
- setupEpg(_epgMap, new EpgUpdatedBy(), "updatedBy");
- setupEpg(_epgMap, new EpgUpdatedTime(), "updatedTime");
- setupEpg(_epgMap, new EpgDeletedBy(), "deletedBy");
- setupEpg(_epgMap, new EpgDeletedTime(), "deletedTime");
- setupEpg(_epgMap, new EpgVersionNo(), "versionNo");
- }
- public static class EpgId implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getId();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setId(ctl(vl));
- }
- }
- public static class EpgName implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getName();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setName((String) vl);
- }
- }
- public static class EpgPaths implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getPaths();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setPaths((String) vl);
- }
- }
- public static class EpgIncludedPaths implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getIncludedPaths();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setIncludedPaths((String) vl);
- }
- }
- public static class EpgExcludedPaths implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getExcludedPaths();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setExcludedPaths((String) vl);
- }
- }
- public static class EpgIncludedDocPaths implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getIncludedDocPaths();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setIncludedDocPaths((String) vl);
- }
- }
- public static class EpgExcludedDocPaths implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getExcludedDocPaths();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setExcludedDocPaths((String) vl);
- }
- }
- public static class EpgConfigParameter implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getConfigParameter();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setConfigParameter((String) vl);
- }
- }
- public static class EpgDepth implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getDepth();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setDepth(cti(vl));
- }
- }
- public static class EpgMaxAccessCount implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getMaxAccessCount();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setMaxAccessCount(ctl(vl));
- }
- }
- public static class EpgNumOfThread implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getNumOfThread();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setNumOfThread(cti(vl));
- }
- }
- public static class EpgIntervalTime implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getIntervalTime();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setIntervalTime(cti(vl));
- }
- }
- public static class EpgBoost implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getBoost();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setBoost(ctb(vl));
- }
- }
- public static class EpgAvailable implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getAvailable();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setAvailable((String) vl);
- }
- }
- public static class EpgSortOrder implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getSortOrder();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setSortOrder(cti(vl));
- }
- }
- public static class EpgCreatedBy implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getCreatedBy();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setCreatedBy((String) vl);
- }
- }
- public static class EpgCreatedTime implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getCreatedTime();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setCreatedTime((java.sql.Timestamp) vl);
- }
- }
- public static class EpgUpdatedBy implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getUpdatedBy();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setUpdatedBy((String) vl);
- }
- }
- public static class EpgUpdatedTime implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getUpdatedTime();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setUpdatedTime((java.sql.Timestamp) vl);
- }
- }
- public static class EpgDeletedBy implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getDeletedBy();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setDeletedBy((String) vl);
- }
- }
- public static class EpgDeletedTime implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getDeletedTime();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setDeletedTime((java.sql.Timestamp) vl);
- }
- }
- public static class EpgVersionNo implements PropertyGateway {
- @Override
- public Object read(final Entity et) {
- return ((FileCrawlingConfig) et).getVersionNo();
- }
- @Override
- public void write(final Entity et, final Object vl) {
- ((FileCrawlingConfig) et).setVersionNo(cti(vl));
- }
- }
- @Override
- public PropertyGateway findPropertyGateway(final String prop) {
- return doFindEpg(_epgMap, prop);
- }
- // ===================================================================================
- // Table Info
- // ==========
- protected final String _tableDbName = "FILE_CRAWLING_CONFIG";
- protected final String _tablePropertyName = "fileCrawlingConfig";
- protected final TableSqlName _tableSqlName = new TableSqlName(
- "FILE_CRAWLING_CONFIG", _tableDbName);
- {
- _tableSqlName.xacceptFilter(DBFluteConfig.getInstance()
- .getTableSqlNameFilter());
- }
- @Override
- public String getTableDbName() {
- return _tableDbName;
- }
- @Override
- public String getTablePropertyName() {
- return _tablePropertyName;
- }
- @Override
- public TableSqlName getTableSqlName() {
- return _tableSqlName;
- }
- // ===================================================================================
- // Column Info
- // ===========
- protected final ColumnInfo _columnId = cci(
- "ID",
- "ID",
- null,
- null,
- Long.class,
- "id",
- null,
- true,
- true,
- true,
- "BIGINT",
- 19,
- 0,
- "NEXT VALUE FOR PUBLIC.SYSTEM_SEQUENCE_92C9BA4B_DAC0_4884_8CD3_7B05BDD9AD3C",
- false,
- null,
- null,
- null,
- "fileAuthenticationList,fileConfigToLabelTypeMappingList,fileConfigToRoleTypeMappingList",
- null);
- protected final ColumnInfo _columnName = cci("NAME", "NAME", null, null,
- String.class, "name", null, false, false, true, "VARCHAR", 200, 0,
- null, false, null, null, null, null, null);
- protected final ColumnInfo _columnPaths = cci("PATHS", "PATHS", null, null,
- String.class, "paths", null, false, false, true, "VARCHAR", 4000,
- 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnIncludedPaths = cci("INCLUDED_PATHS",
- "INCLUDED_PATHS", null, null, String.class, "includedPaths", null,
- false, false, false, "VARCHAR", 4000, 0, null, false, null, null,
- null, null, null);
- protected final ColumnInfo _columnExcludedPaths = cci("EXCLUDED_PATHS",
- "EXCLUDED_PATHS", null, null, String.class, "excludedPaths", null,
- false, false, false, "VARCHAR", 4000, 0, null, false, null, null,
- null, null, null);
- protected final ColumnInfo _columnIncludedDocPaths = cci(
- "INCLUDED_DOC_PATHS", "INCLUDED_DOC_PATHS", null, null,
- String.class, "includedDocPaths", null, false, false, false,
- "VARCHAR", 4000, 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnExcludedDocPaths = cci(
- "EXCLUDED_DOC_PATHS", "EXCLUDED_DOC_PATHS", null, null,
- String.class, "excludedDocPaths", null, false, false, false,
- "VARCHAR", 4000, 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnConfigParameter = cci("CONFIG_PARAMETER",
- "CONFIG_PARAMETER", null, null, String.class, "configParameter",
- null, false, false, false, "VARCHAR", 4000, 0, null, false, null,
- null, null, null, null);
- protected final ColumnInfo _columnDepth = cci("DEPTH", "DEPTH", null, null,
- Integer.class, "depth", null, false, false, false, "INTEGER", 10,
- 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnMaxAccessCount = cci("MAX_ACCESS_COUNT",
- "MAX_ACCESS_COUNT", null, null, Long.class, "maxAccessCount", null,
- false, false, false, "BIGINT", 19, 0, null, false, null, null,
- null, null, null);
- protected final ColumnInfo _columnNumOfThread = cci("NUM_OF_THREAD",
- "NUM_OF_THREAD", null, null, Integer.class, "numOfThread", null,
- false, false, true, "INTEGER", 10, 0, null, false, null, null,
- null, null, null);
- protected final ColumnInfo _columnIntervalTime = cci("INTERVAL_TIME",
- "INTERVAL_TIME", null, null, Integer.class, "intervalTime", null,
- false, false, true, "INTEGER", 10, 0, null, false, null, null,
- null, null, null);
- protected final ColumnInfo _columnBoost = cci("BOOST", "BOOST", null, null,
- java.math.BigDecimal.class, "boost", null, false, false, true,
- "DOUBLE", 17, 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnAvailable = cci("AVAILABLE", "AVAILABLE",
- null, null, String.class, "available", null, false, false, true,
- "VARCHAR", 1, 0, null, false, null, null, null, null, null);
- protected final ColumnInfo _columnSortOrder = cci("SORT_ORDER",
- "SORT_ORDER", null, null, Integer.class, "sortOrder", null, false,
- false, true, "INTEGER", 10, 0, null, false, null, null, null, null,
- null);
- protected final ColumnInfo _columnCreatedBy = cci("CREATED_BY",
- "CREATED_BY", null, null, String.class, "createdBy", null, false,
- false, true, "VARCHAR", 255, 0, null, false, null, null, null,
- null, null);
- protected final ColumnInfo _columnCreatedTime = cci("CREATED_TIME",
- "CREATED_TIME", null, null, java.sql.Timestamp.class,
- "createdTime", null, false, false, true, "TIMESTAMP", 23, 10, null,
- false, null, null, null, null, null);
- protected final ColumnInfo _columnUpdatedBy = cci("UPDATED_BY",
- "UPDATED_BY", null, null, String.class, "updatedBy", null, false,
- false, false, "VARCHAR", 255, 0, null, false, null, null, null,
- null, null);
- protected final ColumnInfo _columnUpdatedTime = cci("UPDATED_TIME",
- "UPDATED_TIME", null, null, java.sql.Timestamp.class,
- "updatedTime", null, false, false, false, "TIMESTAMP", 23, 10,
- null, false, null, null, null, null, null);
- protected final ColumnInfo _columnDeletedBy = cci("DELETED_BY",
- "DELETED_BY", null, null, String.class, "deletedBy", null, false,
- false, false, "VARCHAR", 255, 0, null, false, null, null, null,
- null, null);
- protected final ColumnInfo _columnDeletedTime = cci("DELETED_TIME",
- "DELETED_TIME", null, null, java.sql.Timestamp.class,
- "deletedTime", null, false, false, false, "TIMESTAMP", 23, 10,
- null, false, null, null, null, null, null);
- protected final ColumnInfo _columnVersionNo = cci("VERSION_NO",
- "VERSION_NO", null, null, Integer.class, "versionNo", null, false,
- false, true, "INTEGER", 10, 0, null, false,
- OptimisticLockType.VERSION_NO, null, null, null, null);
- /**
- * ID: {PK, ID, NotNull, BIGINT(19)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnId() {
- return _columnId;
- }
- /**
- * NAME: {NotNull, VARCHAR(200)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnName() {
- return _columnName;
- }
- /**
- * PATHS: {NotNull, VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnPaths() {
- return _columnPaths;
- }
- /**
- * INCLUDED_PATHS: {VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnIncludedPaths() {
- return _columnIncludedPaths;
- }
- /**
- * EXCLUDED_PATHS: {VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnExcludedPaths() {
- return _columnExcludedPaths;
- }
- /**
- * INCLUDED_DOC_PATHS: {VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnIncludedDocPaths() {
- return _columnIncludedDocPaths;
- }
- /**
- * EXCLUDED_DOC_PATHS: {VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnExcludedDocPaths() {
- return _columnExcludedDocPaths;
- }
- /**
- * CONFIG_PARAMETER: {VARCHAR(4000)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnConfigParameter() {
- return _columnConfigParameter;
- }
- /**
- * DEPTH: {INTEGER(10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnDepth() {
- return _columnDepth;
- }
- /**
- * MAX_ACCESS_COUNT: {BIGINT(19)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnMaxAccessCount() {
- return _columnMaxAccessCount;
- }
- /**
- * NUM_OF_THREAD: {NotNull, INTEGER(10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnNumOfThread() {
- return _columnNumOfThread;
- }
- /**
- * INTERVAL_TIME: {NotNull, INTEGER(10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnIntervalTime() {
- return _columnIntervalTime;
- }
- /**
- * BOOST: {NotNull, DOUBLE(17)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnBoost() {
- return _columnBoost;
- }
- /**
- * AVAILABLE: {NotNull, VARCHAR(1)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnAvailable() {
- return _columnAvailable;
- }
- /**
- * SORT_ORDER: {NotNull, INTEGER(10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnSortOrder() {
- return _columnSortOrder;
- }
- /**
- * CREATED_BY: {NotNull, VARCHAR(255)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnCreatedBy() {
- return _columnCreatedBy;
- }
- /**
- * CREATED_TIME: {NotNull, TIMESTAMP(23, 10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnCreatedTime() {
- return _columnCreatedTime;
- }
- /**
- * UPDATED_BY: {VARCHAR(255)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnUpdatedBy() {
- return _columnUpdatedBy;
- }
- /**
- * UPDATED_TIME: {TIMESTAMP(23, 10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnUpdatedTime() {
- return _columnUpdatedTime;
- }
- /**
- * DELETED_BY: {VARCHAR(255)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnDeletedBy() {
- return _columnDeletedBy;
- }
- /**
- * DELETED_TIME: {TIMESTAMP(23, 10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnDeletedTime() {
- return _columnDeletedTime;
- }
- /**
- * VERSION_NO: {NotNull, INTEGER(10)}
- * @return The information object of specified column. (NotNull)
- */
- public ColumnInfo columnVersionNo() {
- return _columnVersionNo;
- }
- @Override
- protected List<ColumnInfo> ccil() {
- final List<ColumnInfo> ls = newArrayList();
- ls.add(columnId());
- ls.add(columnName());
- ls.add(columnPaths());
- ls.add(columnIncludedPaths());
- ls.add(columnExcludedPaths());
- ls.add(columnIncludedDocPaths());
- ls.add(columnExcludedDocPaths());
- ls.add(columnConfigParameter());
- ls.add(columnDepth());
- ls.add(columnMaxAccessCount());
- ls.add(columnNumOfThread());
- ls.add(columnIntervalTime());
- ls.add(columnBoost());
- ls.add(columnAvailable());
- ls.add(columnSortOrder());
- ls.add(columnCreatedBy());
- ls.add(columnCreatedTime());
- ls.add(columnUpdatedBy());
- ls.add(columnUpdatedTime());
- ls.add(columnDeletedBy());
- ls.add(columnDeletedTime());
- ls.add(columnVersionNo());
- return ls;
- }
- {
- initializeInformationResource();
- }
- // ===================================================================================
- // Unique Info
- // ===========
- // -----------------------------------------------------
- // Primary Element
- // ---------------
- @Override
- protected UniqueInfo cpui() {
- return hpcpui(columnId());
- }
- @Override
- public boolean hasPrimaryKey() {
- return true;
- }
- @Override
- public boolean hasCompoundPrimaryKey() {
- return false;
- }
- // ===================================================================================
- // Relation Info
- // =============
- // cannot cache because it uses related DB meta instance while booting
- // (instead, cached by super's collection)
- // -----------------------------------------------------
- // Foreign Property
- // ----------------
- // -----------------------------------------------------
- // Referrer Property
- // -----------------
- /**
- * FILE_AUTHENTICATION by FILE_CRAWLING_CONFIG_ID, named 'fileAuthenticationList'.
- * @return The information object of referrer property. (NotNull)
- */
- public ReferrerInfo referrerFileAuthenticationList() {
- final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
- FileAuthenticationDbm.getInstance()
- .columnFileCrawlingConfigId());
- return cri("CONSTRAINT_F90", "fileAuthenticationList", this,
- FileAuthenticationDbm.getInstance(), mp, false,
- "fileCrawlingConfig");
- }
- /**
- * FILE_CONFIG_TO_LABEL_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToLabelTypeMappingList'.
- * @return The information object of referrer property. (NotNull)
- */
- public ReferrerInfo referrerFileConfigToLabelTypeMappingList() {
- final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
- FileConfigToLabelTypeMappingDbm.getInstance()
- .columnFileConfigId());
- return cri("CONSTRAINT_F57F", "fileConfigToLabelTypeMappingList", this,
- FileConfigToLabelTypeMappingDbm.getInstance(), mp, false,
- "fileCrawlingConfig");
- }
- /**
- * FILE_CONFIG_TO_ROLE_TYPE_MAPPING by FILE_CONFIG_ID, named 'fileConfigToRoleTypeMappingList'.
- * @return The information object of referrer property. (NotNull)
- */
- public ReferrerInfo referrerFileConfigToRoleTypeMappingList() {
- final Map<ColumnInfo, ColumnInfo> mp = newLinkedHashMap(columnId(),
- FileConfigToRoleTypeMappingDbm.getInstance()
- .columnFileConfigId());
- return cri("CONSTRAINT_3A", "fileConfigToRoleTypeMappingList", this,
- FileConfigToRoleTypeMappingDbm.getInstance(), mp, false,
- "fileCrawlingConfig");
- }
- // ===================================================================================
- // Various Info
- // ============
- @Override
- public boolean hasIdentity() {
- return true;
- }
- @Override
- public boolean hasVersionNo() {
- return true;
- }
- @Override
- public ColumnInfo getVersionNoColumnInfo() {
- return _columnVersionNo;
- }
- // ===================================================================================
- // Type Name
- // =========
- @Override
- public String getEntityTypeName() {
- return "jp.sf.fess.db.exentity.FileCrawlingConfig";
- }
- @Override
- public String getConditionBeanTypeName() {
- return "jp.sf.fess.db.cbean.FileCrawlingConfigCB";
- }
- @Override
- public String getBehaviorTypeName() {
- return "jp.sf.fess.db.exbhv.FileCrawlingConfigBhv";
- }
- // ===================================================================================
- // Object Type
- // ===========
- @Override
- public Class<FileCrawlingConfig> getEntityType() {
- return FileCrawlingConfig.class;
- }
- // ===================================================================================
- // Object Instance
- // ===============
- @Override
- public FileCrawlingConfig newEntity() {
- return new FileCrawlingConfig();
- }
- public FileCrawlingConfig newMyEntity() {
- return new FileCrawlingConfig();
- }
- // ===================================================================================
- // Map Communication
- // =================
- @Override
- public void acceptPrimaryKeyMap(final Entity et,
- final Map<String, ? extends Object> mp) {
- doAcceptPrimaryKeyMap((FileCrawlingConfig) et, mp);
- }
- @Override
- public void acceptAllColumnMap(final Entity et,
- final Map<String, ? extends Object> mp) {
- doAcceptAllColumnMap((FileCrawlingConfig) et, mp);
- }
- @Override
- public Map<String, Object> extractPrimaryKeyMap(final Entity et) {
- return doExtractPrimaryKeyMap(et);
- }
- @Override
- public Map<String, Object> extractAllColumnMap(final Entity et) {
- return doExtractAllColumnMap(et);
- }
- }
|